aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-03-28 18:33:38 -0400
committerdaurnimator <quae@daurnimator.com>2014-03-28 18:33:38 -0400
commitac04e20d3bcd37432c086d4b91222914c7c4ed59 (patch)
treee3d11ff14bcb7c5f67140b6c399a499854f5975a /plugins
parentf090e4eddaf71cbe01a3e6810961a8492a70549d (diff)
downloadprosody-ac04e20d3bcd37432c086d4b91222914c7c4ed59.tar.gz
prosody-ac04e20d3bcd37432c086d4b91222914c7c4ed59.zip
plugins/muc/muc.lib: Status codes should be inside of x element
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 9ae3f56a..08ca0384 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1013,8 +1013,9 @@ function room_mt:process_form(origin, stanza)
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();