aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-28 02:03:59 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-28 02:03:59 +0500
commit9ded5636847cb6cfe62e81f47494cd46e5612c8f (patch)
tree7bc88affd34df91dde443d73a05abe5dec2f9709
parentf8114fe1b0e239d418e2f1d05952c97170efc351 (diff)
downloadprosody-9ded5636847cb6cfe62e81f47494cd46e5612c8f.tar.gz
prosody-9ded5636847cb6cfe62e81f47494cd46e5612c8f.zip
mod_iq: IQ error and result sub-events are now "iq-{error,result}/{host,self,bare}/id" (previously "iq/{host,self,bare}/id").
-rw-r--r--plugins/mod_iq.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_iq.lua b/plugins/mod_iq.lua
index e90af781..e077e23d 100644
--- a/plugins/mod_iq.lua
+++ b/plugins/mod_iq.lua
@@ -37,7 +37,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.attr.id, data);
+ module:fire_event("iq-"..stanza.attr.type.."/bare/"..stanza.attr.id, data);
return true;
end
end);
@@ -49,7 +49,7 @@ module:hook("iq/self", function(data)
if stanza.attr.type == "get" or stanza.attr.type == "set" then
return module:fire_event("iq/self/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name, data);
else
- module:fire_event("iq/self/"..stanza.attr.id, data);
+ module:fire_event("iq-"..stanza.attr.type.."/self/"..stanza.attr.id, data);
return true;
end
end);
@@ -61,7 +61,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.attr.id, data);
+ module:fire_event("iq-"..stanza.attr.type.."/host/"..stanza.attr.id, data);
return true;
end
end);