--- a/plugins/muc/mod_muc.lua Mon May 13 15:52:01 2013 -0400
+++ b/plugins/muc/mod_muc.lua Tue May 14 09:38:54 2013 +0100
@@ -83,6 +83,7 @@
room.route_stanza = room_route_stanza;
room.save = room_save;
rooms[jid] = room;
+ module:fire_event("muc-room-created", { room = room });
return room;
end
--- a/plugins/muc/muc.lib.lua Mon May 13 15:52:01 2013 -0400
+++ b/plugins/muc/muc.lib.lua Tue May 14 09:38:54 2013 +0100
@@ -767,6 +767,7 @@
self._occupants[nick] = nil;
end
self:set_persistent(false);
+ module:fire_event("muc-room-destroyed", { room = self });
end
function room_mt:handle_to_room(origin, stanza) -- presence changes and groupchat messages, along with disco/etc