aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-26 10:02:46 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-26 10:02:46 +0500
commit4a32c9a750cfacc44c4f282a3f2424226169b41b (patch)
tree81c465f1b6a93ceb57f7d9fa491996a0658b3f6d
parent49f2cc3baa5af738740f6c185865efe5635eb303 (diff)
downloadprosody-4a32c9a750cfacc44c4f282a3f2424226169b41b.tar.gz
prosody-4a32c9a750cfacc44c4f282a3f2424226169b41b.zip
mod_iq: Change sub-event names for IQ errors and results to use stanza IDs
-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 0faebaf9..30afb38c 100644
--- a/plugins/mod_iq.lua
+++ b/plugins/mod_iq.lua
@@ -40,7 +40,7 @@ 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
- module:fire_event("iq/bare/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name, data);
+ module:fire_event("iq/bare/"..stanza.attr.id, data);
return true;
end
end);
@@ -52,7 +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
- module:fire_event("iq/host/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name, data);
+ module:fire_event("iq/host/"..stanza.attr.id, data);
return true;
end
end);