Software /
code /
verse
Comparison
client.lua @ 282:52b971d9ebc3
client, component: `ret` was probably meant to be a local
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 05 Mar 2012 20:13:33 +0100 |
parent | 199:33b54389ed9c |
child | 323:5bf3b13edb80 |
comparison
equal
deleted
inserted
replaced
279:7a0aa3d055f4 | 282:52b971d9ebc3 |
---|---|
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); |