86 return true; |
86 return true; |
87 end |
87 end |
88 end); |
88 end); |
89 |
89 |
90 self:hook("stanza", function (stanza) |
90 self:hook("stanza", function (stanza) |
|
91 local ret; |
91 if stanza.attr.xmlns == nil or stanza.attr.xmlns == "jabber:client" then |
92 if stanza.attr.xmlns == nil or stanza.attr.xmlns == "jabber:client" then |
92 if stanza.name == "iq" and (stanza.attr.type == "get" or stanza.attr.type == "set") then |
93 if stanza.name == "iq" and (stanza.attr.type == "get" or stanza.attr.type == "set") then |
93 local xmlns = stanza.tags[1] and stanza.tags[1].attr.xmlns; |
94 local xmlns = stanza.tags[1] and stanza.tags[1].attr.xmlns; |
94 if xmlns then |
95 if xmlns then |
95 ret = self:event("iq/"..xmlns, stanza); |
96 ret = self:event("iq/"..xmlns, stanza); |