Software /
code /
prosody
Diff
plugins/mod_iq.lua @ 1421:7dafb3bae02b
mod_iq: Change sub-event names for IQ errors and results to use stanza IDs
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 26 Jun 2009 10:02:46 +0500 |
parent | 1403:a1762cfd4d83 |
child | 1522:569d58d21612 |
line wrap: on
line diff
--- 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);