aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-24 20:05:17 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-24 20:05:17 +0500
commitfb62c6953c0dc57a9dce4719b2823742ca35b652 (patch)
treee25d399531e060f3e24823b6d37fc864a3446def /plugins
parent6f3828182630092188131412b6f81e9dfec89eba (diff)
downloadprosody-fb62c6953c0dc57a9dce4719b2823742ca35b652.tar.gz
prosody-fb62c6953c0dc57a9dce4719b2823742ca35b652.zip
mod_iq: Fire sub-events for IQ results and errors
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_iq.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/mod_iq.lua b/plugins/mod_iq.lua
index ed89688a..0faebaf9 100644
--- a/plugins/mod_iq.lua
+++ b/plugins/mod_iq.lua
@@ -40,7 +40,8 @@ module:hook("iq/bare", function(data)
if stanza.attr.type == "get" or stanza.attr.type == "set" then
return module:fire_event("iq/bare/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name, data);
else
- return true; -- TODO do something with results and errors
+ module:fire_event("iq/bare/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name, data);
+ return true;
end
end);
@@ -51,6 +52,7 @@ module:hook("iq/host", function(data)
if stanza.attr.type == "get" or stanza.attr.type == "set" then
return module:fire_event("iq/host/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name, data);
else
- return true; -- TODO do something with results and errors
+ module:fire_event("iq/host/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name, data);
+ return true;
end
end);