Comparison

plugins/muc/muc.lib.lua @ 7012:990b4ddaf582

Merge 0.9->0.10
author Matthew Wild <mwild1@gmail.com>
date Wed, 16 Dec 2015 16:45:57 +0000
parent 6983:05ef46379165
parent 7011:2d5751b2f21c
child 7013:f387fae9fb31
child 7118:dacc07833b86
comparison
equal deleted inserted replaced
7009:61f5f8435e0b 7012:990b4ddaf582
712 end 712 end
713 origin.send(st.reply(stanza)); 713 origin.send(st.reply(stanza));
714 714
715 if next(changed) then 715 if next(changed) then
716 local msg = st.message({type='groupchat', from=self.jid}) 716 local msg = st.message({type='groupchat', from=self.jid})
717 :tag('x', {xmlns='http://jabber.org/protocol/muc#user'}):up() 717 :tag('x', {xmlns='http://jabber.org/protocol/muc#user'})
718 :tag('status', {code = '104'}):up(); 718 :tag('status', {code = '104'}):up();
719 if changed.whois then 719 if changed.whois then
720 local code = (self:get_whois() == 'moderators') and "173" or "172"; 720 local code = (self:get_whois() == 'moderators') and "173" or "172";
721 msg.tags[1]:tag('status', {code = code}):up(); 721 msg.tags[1]:tag('status', {code = code}):up();
722 end 722 end