Software /
code /
prosody
Diff
plugins/muc/muc.lib.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 | 5542:329ebdfb39a2 |
child | 5580:db5d1a350cc7 |
child | 5680:24b044f6e06d |
line wrap: on
line diff
--- 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