# HG changeset patch # User Waqas Hussain # Date 1245992566 -18000 # Node ID 7dafb3bae02b8bfef80e5e64e0975372edc9cde0 # Parent 1576a5aa52f8ccc6f1fe24eb15f9154241bb70a6 mod_iq: Change sub-event names for IQ errors and results to use stanza IDs diff -r 1576a5aa52f8 -r 7dafb3bae02b plugins/mod_iq.lua --- a/plugins/mod_iq.lua Fri Jun 26 05:54:55 2009 +0100 +++ b/plugins/mod_iq.lua Fri Jun 26 10:02:46 2009 +0500 @@ -40,7 +40,7 @@ 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 @@ 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);