diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-12-02 16:04:42 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-12-02 16:04:42 +0500 |
commit | 0197aa017b47005fe98229d910dd2bf76baa6e23 (patch) | |
tree | 96a6b47a0a9a20ad547ba94e8d7c399d597e2dfc | |
parent | 39939bd65e46a352137193bb01352b0b2e445727 (diff) | |
download | prosody-0197aa017b47005fe98229d910dd2bf76baa6e23.tar.gz prosody-0197aa017b47005fe98229d910dd2bf76baa6e23.zip |
mod_iq: Don't stop event dispatch for unhandled IQ errors and results (this lets negative priority handlers intercept the events).
-rw-r--r-- | plugins/mod_iq.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/mod_iq.lua b/plugins/mod_iq.lua index c201a465..86c1b528 100644 --- a/plugins/mod_iq.lua +++ b/plugins/mod_iq.lua @@ -41,8 +41,7 @@ module:hook("iq/bare", function(data) if ret ~= nil then return ret; end return module:fire_event("iq-"..type.."/bare/"..child.attr.xmlns..":"..child.name, data); else - module:fire_event("iq-"..type.."/bare/"..stanza.attr.id, data); - return true; + return module:fire_event("iq-"..type.."/bare/"..stanza.attr.id, data); end end); @@ -57,8 +56,7 @@ module:hook("iq/self", function(data) if ret ~= nil then return ret; end return module:fire_event("iq-"..type.."/self/"..child.attr.xmlns..":"..child.name, data); else - module:fire_event("iq-"..type.."/self/"..stanza.attr.id, data); - return true; + return module:fire_event("iq-"..type.."/self/"..stanza.attr.id, data); end end); @@ -73,7 +71,6 @@ module:hook("iq/host", function(data) if ret ~= nil then return ret; end return module:fire_event("iq-"..type.."/host/"..child.attr.xmlns..":"..child.name, data); else - module:fire_event("iq-"..type.."/host/"..stanza.attr.id, data); - return true; + return module:fire_event("iq-"..type.."/host/"..stanza.attr.id, data); end end); |