Software /
code /
prosody
Comparison
plugins/muc/mod_muc.lua @ 6000:0f6399c86c10
Merge 0.9->0.10
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 21 Jan 2014 03:24:40 +0000 |
parent | 5984:c68e2b11d691 |
parent | 5997:2d652afa57e4 |
child | 6091:3a1c39b31497 |
child | 6744:79318d548465 |
comparison
equal
deleted
inserted
replaced
5996:e7efa9703a3f | 6000:0f6399c86c10 |
---|---|
171 end | 171 end |
172 end | 172 end |
173 if room then | 173 if room then |
174 room:handle_stanza(origin, stanza); | 174 room:handle_stanza(origin, stanza); |
175 if not next(room._occupants) and not persistent_rooms[room.jid] then -- empty, non-persistent room | 175 if not next(room._occupants) and not persistent_rooms[room.jid] then -- empty, non-persistent room |
176 module:fire_event("muc-room-destroyed", { room = room }); | |
176 rooms[bare] = nil; -- discard room | 177 rooms[bare] = nil; -- discard room |
177 end | 178 end |
178 else | 179 else |
179 origin.send(st.error_reply(stanza, "cancel", "not-allowed")); | 180 origin.send(st.error_reply(stanza, "cancel", "not-allowed")); |
180 end | 181 end |