aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-12-16 16:41:48 +0000
committerMatthew Wild <mwild1@gmail.com>2015-12-16 16:41:48 +0000
commit54e77b9859b2c0e94624d1eeb3c929693a0ce304 (patch)
treec99bcb6ecb9ef125153e3dd336e6325ac2034c9a /plugins
parentbe4dab31a7e7848d4640871443da3e1d46107f31 (diff)
downloadprosody-54e77b9859b2c0e94624d1eeb3c929693a0ce304.tar.gz
prosody-54e77b9859b2c0e94624d1eeb3c929693a0ce304.zip
MUC: Fix incorrect nesting of status codes when room config changes (fixes #579)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index d42fb2eb..5879c256 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -736,7 +736,7 @@ function room_mt:process_form(origin, 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()
+ :tag('x', {xmlns='http://jabber.org/protocol/muc#user'});
if dirty then
msg.tags[1]:tag('status', {code = '104'}):up();
@@ -745,6 +745,7 @@ function room_mt:process_form(origin, stanza)
local code = (whois == 'moderators') and "173" or "172";
msg.tags[1]:tag('status', {code = code}):up();
end
+ msg:up();
self:broadcast_message(msg, false)
end