aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-02 16:04:42 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-02 16:04:42 +0500
commit0197aa017b47005fe98229d910dd2bf76baa6e23 (patch)
tree96a6b47a0a9a20ad547ba94e8d7c399d597e2dfc /plugins
parent39939bd65e46a352137193bb01352b0b2e445727 (diff)
downloadprosody-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).
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_iq.lua9
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);