Comparison

plugins/muc/muc.lib.lua @ 6122:44a846744814

plugins/muc/muc.lib: Fix wrong variable in `construct_stanza_id` block
author daurnimator <quae@daurnimator.com>
date Wed, 19 Mar 2014 16:24:17 -0400
parent 6121:74bbcef3978e
child 6123:7f82bbd249fe
comparison
equal deleted inserted replaced
6121:74bbcef3978e 6122:44a846744814
608 if not o_data then -- recipient not in room 608 if not o_data then -- recipient not in room
609 origin.send(st.error_reply(stanza, "cancel", "item-not-found", "Recipient not in room")); 609 origin.send(st.error_reply(stanza, "cancel", "item-not-found", "Recipient not in room"));
610 return true; 610 return true;
611 end 611 end
612 do -- construct_stanza_id 612 do -- construct_stanza_id
613 stanza.attr.id = base64.encode(to_jid.."\0"..stanza.attr.id.."\0"..md5(from)); 613 stanza.attr.id = base64.encode(o_data.jid.."\0"..stanza.attr.id.."\0"..md5(from));
614 end 614 end
615 stanza.attr.from, stanza.attr.to = current_nick, o_data.jid; 615 stanza.attr.from, stanza.attr.to = current_nick, o_data.jid;
616 log("debug", "%s sent private iq stanza to %s (%s)", from, to, o_data.jid); 616 log("debug", "%s sent private iq stanza to %s (%s)", from, to, o_data.jid);
617 if stanza.tags[1].attr.xmlns == 'vcard-temp' then 617 if stanza.tags[1].attr.xmlns == 'vcard-temp' then
618 stanza.attr.to = jid_bare(stanza.attr.to); 618 stanza.attr.to = jid_bare(stanza.attr.to);