Mercurial > prosody-hg
comparison plugins/muc/mod_muc.lua @ 6001:34f43c8167e5
Merge 0.10->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 21 Jan 2014 03:26:04 +0000 |
| parents | 0f6399c86c10 |
| children | 3a1c39b31497 79318d548465 |
comparison
equal
deleted
inserted
replaced
| 5994:82555ae620dd | 6001:34f43c8167e5 |
|---|---|
| 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 |
