Comparison

plugins/muc/muc.lib.lua @ 5144:a30507061526

MUC: Fix traceback caused by faulty logic precedence. (thanks waqas, nulani)
author Kim Alvefur <zash@zash.se>
date Tue, 25 Sep 2012 22:03:35 +0200
parent 5086:1ef9aa0c9fb0
child 5195:ce5d7538ac48
comparison
equal deleted inserted replaced
5142:3221746f4769 5144:a30507061526
520 if type ~= 'visible' and type ~= 'invisible' then -- COMPAT ejabberd can broadcast or forward XEP-0018 presences 520 if type ~= 'visible' and type ~= 'invisible' then -- COMPAT ejabberd can broadcast or forward XEP-0018 presences
521 origin.send(st.error_reply(stanza, "modify", "bad-request")); -- FIXME correct error? 521 origin.send(st.error_reply(stanza, "modify", "bad-request")); -- FIXME correct error?
522 end 522 end
523 end 523 end
524 elseif not current_nick then -- not in room 524 elseif not current_nick then -- not in room
525 if type == "error" or type == "result" and stanza.name == "iq" then 525 if (type == "error" or type == "result") and stanza.name == "iq" then
526 local id = stanza.attr.id; 526 local id = stanza.attr.id;
527 stanza.attr.from, stanza.attr.to, stanza.attr.id = deconstruct_stanza_id(self, stanza); 527 stanza.attr.from, stanza.attr.to, stanza.attr.id = deconstruct_stanza_id(self, stanza);
528 if stanza.attr.id then 528 if stanza.attr.id then
529 self:_route_stanza(stanza); 529 self:_route_stanza(stanza);
530 end 530 end