# HG changeset patch # User Matthew Wild # Date 1370711256 -3600 # Node ID 9f9de80781645577d2140179c3bbf52a111b6fcb # Parent 97c1c1bdd7bc46b3b424354ca73ad6e17a843ba7 mod_muc: Include status code 332 on service shutdown (thanks mathieui) diff -r 97c1c1bdd7bc -r 9f9de8078164 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