aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-06-08 18:07:36 +0100
committerMatthew Wild <mwild1@gmail.com>2013-06-08 18:07:36 +0100
commit8bb4a30bd1f1189da9e222a95d86cd4231c46d8c (patch)
treec53d0c26893e9e3880b9194f24782dfc2fe6fc07 /plugins
parent67161986600abebddbb9654ed2a4e8756172da8f (diff)
downloadprosody-8bb4a30bd1f1189da9e222a95d86cd4231c46d8c.tar.gz
prosody-8bb4a30bd1f1189da9e222a95d86cd4231c46d8c.zip
mod_muc: Include status code 332 on service shutdown (thanks mathieui)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 47809964..bc865ec9 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -219,7 +219,8 @@ function shutdown_component()
if not saved then
local stanza = st.presence({type = "unavailable"})
:tag("x", {xmlns = "http://jabber.org/protocol/muc#user"})
- :tag("item", { affiliation='none', role='none' }):up();
+ :tag("item", { affiliation='none', role='none' }):up()
+ :tag("status", { code = "332"}):up();
for roomjid, room in pairs(rooms) do
shutdown_room(room, stanza);
end