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
commit74698b8dcb22d6f7a649986ad70df7a4ee197b5b (patch)
treec53d0c26893e9e3880b9194f24782dfc2fe6fc07 /plugins
parent45a88409431a09690cdf46f0c33219bcc7124197 (diff)
downloadprosody-74698b8dcb22d6f7a649986ad70df7a4ee197b5b.tar.gz
prosody-74698b8dcb22d6f7a649986ad70df7a4ee197b5b.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