Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 6188:f47268c8a8d0
plugins/muc/muc.lib: Status codes should be inside of x element
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Fri, 28 Mar 2014 18:33:38 -0400 |
parent | 6187:c0b4b5d41e55 |
child | 6189:c54ef63f6e20 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Fri Mar 28 17:58:25 2014 -0400 +++ b/plugins/muc/muc.lib.lua Fri Mar 28 18:33:38 2014 -0400 @@ -1013,8 +1013,9 @@ if next(changed) then local msg = st.message({type='groupchat', from=self.jid}) - :tag('x', {xmlns='http://jabber.org/protocol/muc#user'}):up() - :tag('status', {code = '104'}):up(); + :tag('x', {xmlns='http://jabber.org/protocol/muc#user'}) + :tag('status', {code = '104'}):up() + :up(); if changed.whois then local code = (self:get_whois() == 'moderators') and "173" or "172"; msg.tags[1]:tag('status', {code = code}):up();