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 | 176b0083be91b05b4c15ee4efbbc4051513f0d45 (patch) | |
tree | a7be8b9fb3ab42948a57c5e59dd265939627e7e2 /plugins/mod_iq.lua | |
parent | f85b16f9fa8e1fde7abda68f0da1b024c926807c (diff) | |
download | prosody-176b0083be91b05b4c15ee4efbbc4051513f0d45.tar.gz prosody-176b0083be91b05b4c15ee4efbbc4051513f0d45.zip |
mod_iq: Don't stop event dispatch for unhandled IQ errors and results (this lets negative priority handlers intercept the events).
Diffstat (limited to 'plugins/mod_iq.lua')
-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); |