Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
5658:97c1c1bdd7bc | 5659:9f9de8078164 |
---|---|
217 end | 217 end |
218 function shutdown_component() | 218 function shutdown_component() |
219 if not saved then | 219 if not saved then |
220 local stanza = st.presence({type = "unavailable"}) | 220 local stanza = st.presence({type = "unavailable"}) |
221 :tag("x", {xmlns = "http://jabber.org/protocol/muc#user"}) | 221 :tag("x", {xmlns = "http://jabber.org/protocol/muc#user"}) |
222 :tag("item", { affiliation='none', role='none' }):up(); | 222 :tag("item", { affiliation='none', role='none' }):up() |
223 :tag("status", { code = "332"}):up(); | |
223 for roomjid, room in pairs(rooms) do | 224 for roomjid, room in pairs(rooms) do |
224 shutdown_room(room, stanza); | 225 shutdown_room(room, stanza); |
225 end | 226 end |
226 shutdown_room(host_room, stanza); | 227 shutdown_room(host_room, stanza); |
227 end | 228 end |