diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-05-14 09:38:54 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-05-14 09:38:54 +0100 |
commit | a9407043cf075c684494be34a5622ad06666a043 (patch) | |
tree | b86a1c45fbce3384d59838f15874809dfd441913 /plugins/muc/muc.lib.lua | |
parent | af2f9237739ba609778b58ab2361e765da38f882 (diff) | |
download | prosody-a9407043cf075c684494be34a5622ad06666a043.tar.gz prosody-a9407043cf075c684494be34a5622ad06666a043.zip |
mod_muc: Fire muc-room-created and muc-room-destroyed events (thanks nik)
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index a5aba3c8..1ea231f3 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -767,6 +767,7 @@ function room_mt:destroy(newjid, reason, password) 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 |