Diff

plugins/muc/mod_muc.lua @ 5659:9f9de8078164

mod_muc: Include status code 332 on service shutdown (thanks mathieui)
author Matthew Wild <mwild1@gmail.com>
date Sat, 08 Jun 2013 18:07:36 +0100
parent 5580:db5d1a350cc7
child 5691:18a115beeebe
line wrap: on
line diff
--- 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