# HG changeset patch # User Waqas Hussain # Date 1245855917 -18000 # Node ID a1762cfd4d834b0069ee01b83bc4b24f8b5e30f4 # Parent 34723bbd5acbd95575dd07486b9e9135e92b64d1 mod_iq: Fire sub-events for IQ results and errors diff -r 34723bbd5acb -r a1762cfd4d83 plugins/mod_iq.lua --- a/plugins/mod_iq.lua Wed Jun 24 19:40:12 2009 +0500 +++ b/plugins/mod_iq.lua Wed Jun 24 20:05:17 2009 +0500 @@ -40,7 +40,8 @@ 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 - return true; -- TODO do something with results and errors + module:fire_event("iq/bare/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name, data); + return true; end end); @@ -51,6 +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 - return true; -- TODO do something with results and errors + module:fire_event("iq/host/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name, data); + return true; end end);