mod_muc: Include status code 332 on service shutdown (thanks mathieui)
authorMatthew Wild <mwild1@gmail.com>
Sat, 08 Jun 2013 18:07:36 +0100
changeset 5659 9f9de8078164
parent 5658 97c1c1bdd7bc
child 5660 df077bc8f019
mod_muc: Include status code 332 on service shutdown (thanks mathieui)
plugins/muc/mod_muc.lua
--- a/plugins/muc/mod_muc.lua	Fri Jun 07 16:26:08 2013 -0400
+++ b/plugins/muc/mod_muc.lua	Sat Jun 08 18:07:36 2013 +0100
@@ -219,7 +219,8 @@
 	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