diff -r dff4a77ee285 -r 3adac5780c5a plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Wed Nov 10 01:34:57 2010 +0100 +++ b/plugins/muc/muc.lib.lua Wed Nov 10 05:49:04 2010 +0500 @@ -656,18 +656,18 @@ origin.send(st.reply(stanza)); if dirty or whois_changed then - local msg = st.message({type='groupchat', from=self.jid}) - :tag('x', {xmlns='http://jabber.org/protocol/muc#user'}):up() + local msg = st.message({type='groupchat', from=self.jid}) + :tag('x', {xmlns='http://jabber.org/protocol/muc#user'}):up() - if dirty then - msg.tags[1]:tag('status', {code = '104'}) - end - if whois_changed then - local code = (whois == 'moderators') and 173 or 172 - msg.tags[1]:tag('status', {code = code}) - end + if dirty then + msg.tags[1]:tag('status', {code = '104'}):up(); + end + if whois_changed then + local code = (whois == 'moderators') and "173" or "172"; + msg.tags[1]:tag('status', {code = code}):up(); + end - self:broadcast_message(msg, false) + self:broadcast_message(msg, false) end end @@ -1022,7 +1022,7 @@ end end if self._data.whois == 'anyone' then - muc_child:tag('status', { code = '100' }); + muc_child:tag('status', { code = '100' }):up(); end end self:route_stanza(stanza);