aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-01 10:27:47 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-01 10:27:47 +0500
commit9c377d78ee14d2abebe667df8fced3a620c27b8c (patch)
tree70f42c7708ba373e4f2a5d3f2f9296325616bd3a
parent5cc04f17ace7e1eaff427e54e178f9bbbccb6acb (diff)
downloadprosody-9c377d78ee14d2abebe667df8fced3a620c27b8c.tar.gz
prosody-9c377d78ee14d2abebe667df8fced3a620c27b8c.zip
mod_iq: Include event data in sub-events
-rw-r--r--plugins/mod_iq.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_iq.lua b/plugins/mod_iq.lua
index 8ccd820f..c1e9df6a 100644
--- a/plugins/mod_iq.lua
+++ b/plugins/mod_iq.lua
@@ -27,7 +27,7 @@ module:hook("iq/bare", function(data)
-- TODO if not user exists, return an error
-- TODO fire post processing events
if #stanza.tags == 1 then
- return module:fire_event("iq/bare/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name);
+ 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
end
@@ -38,7 +38,7 @@ module:hook("iq/host", function(data)
local origin, stanza = data.origin, data.stanza;
if #stanza.tags == 1 then
- return module:fire_event("iq/host/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name);
+ 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
end