diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-20 17:24:08 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-20 17:24:08 +0200 |
commit | 2a5285e1ac7234737a9bee60e4c0f890f00d7a21 (patch) | |
tree | 966dc62950dd79bbcbbfbafc5a9c8ee0d034ae57 /plugins/mod_blocklist.lua | |
parent | 8370703ece4eef92aa1b96cc39f4886ae2af01ac (diff) | |
download | prosody-2a5285e1ac7234737a9bee60e4c0f890f00d7a21.tar.gz prosody-2a5285e1ac7234737a9bee60e4c0f890f00d7a21.zip |
mod_blocklist: Decrease priority of iq hooks to ease handling by other modules
Diffstat (limited to 'plugins/mod_blocklist.lua')
-rw-r--r-- | plugins/mod_blocklist.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_blocklist.lua b/plugins/mod_blocklist.lua index 8efbfd96..f659a197 100644 --- a/plugins/mod_blocklist.lua +++ b/plugins/mod_blocklist.lua @@ -113,7 +113,7 @@ module:hook("iq-get/self/urn:xmpp:blocking:blocklist", function (event) origin.interested_blocklist = true; -- Gets notified about changes origin.send(reply); return true; -end); +end, -1); -- Add or remove some jid(s) from the blocklist -- We want this to be atomic and not do a partial update @@ -215,8 +215,8 @@ local function edit_blocklist(event) return true; end -module:hook("iq-set/self/urn:xmpp:blocking:block", edit_blocklist); -module:hook("iq-set/self/urn:xmpp:blocking:unblock", edit_blocklist); +module:hook("iq-set/self/urn:xmpp:blocking:block", edit_blocklist, -1); +module:hook("iq-set/self/urn:xmpp:blocking:unblock", edit_blocklist, -1); -- Cache invalidation, solved! module:hook_global("user-deleted", function (event) |