Diff

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
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Tue Jan 21 01:51:13 2014 +0100
+++ b/plugins/muc/mod_muc.lua	Tue Jan 21 03:24:40 2014 +0000
@@ -173,6 +173,7 @@
 	if room then
 		room:handle_stanza(origin, stanza);
 		if not next(room._occupants) and not persistent_rooms[room.jid] then -- empty, non-persistent room
+			module:fire_event("muc-room-destroyed", { room = room });
 			rooms[bare] = nil; -- discard room
 		end
 	else