Comparison

plugins/muc/muc.lib.lua @ 6004:09151d26560a

MUC: Tag PMs with <x>, like presence stanzas
author Kim Alvefur <zash@zash.se>
date Tue, 28 Jan 2014 19:21:21 +0100
parent 5983:930109558aa2
child 6054:7a5ddbaf758d
child 6092:16d5049fe842
comparison
equal deleted inserted replaced
6003:28a90f5fea46 6004:09151d26560a
568 if stanza.attr.id then 568 if stanza.attr.id then
569 self:_route_stanza(stanza); 569 self:_route_stanza(stanza);
570 end 570 end
571 stanza.attr.from, stanza.attr.to, stanza.attr.id = from, to, id; 571 stanza.attr.from, stanza.attr.to, stanza.attr.id = from, to, id;
572 else -- message 572 else -- message
573 stanza:tag("x", { xmlns = "http://jabber.org/protocol/muc#user" }):up();
573 stanza.attr.from = current_nick; 574 stanza.attr.from = current_nick;
574 for jid in pairs(o_data.sessions) do 575 for jid in pairs(o_data.sessions) do
575 stanza.attr.to = jid; 576 stanza.attr.to = jid;
576 self:_route_stanza(stanza); 577 self:_route_stanza(stanza);
577 end 578 end