Diff

plugins/muc/mod_muc.lua @ 5577:8b09b0d068d4

mod_muc: Fire muc-room-created and muc-room-destroyed events (thanks nik)
author Matthew Wild <mwild1@gmail.com>
date Tue, 14 May 2013 09:38:54 +0100
parent 5500:eeea0eb2602a
child 5580:db5d1a350cc7
child 5938:deb261fb5c04
line wrap: on
line diff
--- 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