Comparison

client.lua @ 81:0924a3d05e40

Bounce service-unavailable on unhandled iq stanzas (thanks Kev, Florob and anyone else who poked me)
author Matthew Wild <mwild1@gmail.com>
date Mon, 21 Jun 2010 17:33:51 +0100
parent 78:f4188eff53a7
child 83:8221f3c25fd4
comparison
equal deleted inserted replaced
80:336864e83991 81:0924a3d05e40
88 ret = self:event("iq/"..xmlns, stanza); 88 ret = self:event("iq/"..xmlns, stanza);
89 if not ret then 89 if not ret then
90 ret = self:event("iq", stanza); 90 ret = self:event("iq", stanza);
91 end 91 end
92 end 92 end
93 if ret == nil then
94 self:send(verse.error_reply(stanza, "cancel", "service-unavailable"));
95 return true;
96 end
93 else 97 else
94 ret = self:event(stanza.name, stanza); 98 ret = self:event(stanza.name, stanza);
95 end 99 end
96 end 100 end
97 return ret; 101 return ret;