# HG changeset patch # User Waqas Hussain # Date 1290891839 -18000 # Node ID 3ce3b494e84cbe67e307b78407e5e1e52db46534 # Parent 2b80450bd7aea4de367b2b45bd92e974307cb3da mod_iq: IQ error and result sub-events are now "iq-{error,result}/{host,self,bare}/id" (previously "iq/{host,self,bare}/id"). diff -r 2b80450bd7ae -r 3ce3b494e84c plugins/mod_iq.lua --- a/plugins/mod_iq.lua Sun Nov 21 21:02:31 2010 -0800 +++ b/plugins/mod_iq.lua Sun Nov 28 02:03:59 2010 +0500 @@ -37,7 +37,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.attr.id, data); + module:fire_event("iq-"..stanza.attr.type.."/bare/"..stanza.attr.id, data); return true; end end); @@ -49,7 +49,7 @@ 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 @@ 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);