diff 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
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Sat Jan 18 18:46:31 2014 +0000
+++ b/plugins/muc/mod_muc.lua	Tue Jan 21 03:26:04 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