From 0197aa017b47005fe98229d910dd2bf76baa6e23 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 2 Dec 2010 16:04:42 +0500 Subject: mod_iq: Don't stop event dispatch for unhandled IQ errors and results (this lets negative priority handlers intercept the events). --- plugins/mod_iq.lua | 9 +++------ 1 file 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); -- cgit v1.2.3