Mercurial > prosody-hg
comparison plugins/mod_blocklist.lua @ 7085:343be83ddfa6
Merge 0.10->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 16 Jan 2016 22:44:43 +0100 |
| parents | f094683ae6eb |
| children | c27c9695d130 |
comparison
equal
deleted
inserted
replaced
| 7075:47a2deb74b56 | 7085:343be83ddfa6 |
|---|---|
| 219 module:hook("iq-set/self/urn:xmpp:blocking:unblock", edit_blocklist); | 219 module:hook("iq-set/self/urn:xmpp:blocking:unblock", edit_blocklist); |
| 220 | 220 |
| 221 -- Cache invalidation, solved! | 221 -- Cache invalidation, solved! |
| 222 module:hook_global("user-deleted", function (event) | 222 module:hook_global("user-deleted", function (event) |
| 223 if event.host == module.host then | 223 if event.host == module.host then |
| 224 cache:set(event.username, nil); | 224 cache2:set(event.username, nil); |
| 225 cache[event.username] = nil; | 225 cache[event.username] = nil; |
| 226 end | 226 end |
| 227 end); | 227 end); |
| 228 | 228 |
| 229 -- Buggy clients | 229 -- Buggy clients |
