Software /
code /
prosody
Changeset
6108:aae7bc9d6e93
plugins/muc/muc: Add 'muc-occupant-left' event
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Tue, 18 Mar 2014 18:52:28 -0400 |
parents | 6107:5491be05b84c |
children | 6109:566aba0482b6 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Tue Mar 18 16:01:53 2014 -0400 +++ b/plugins/muc/muc.lib.lua Tue Mar 18 18:52:28 2014 -0400 @@ -416,6 +416,7 @@ occupant.role = 'none'; self:broadcast_presence(pr, from); self._occupants[current_nick] = nil; + module:fire_event("muc-occupant-left", { room = self; nick = current_nick; }); end return true; end @@ -823,6 +824,7 @@ self._jid_nick[jid] = nil; end self._occupants[nick] = nil; + module:fire_event("muc-occupant-left", { room = self; nick = nick; }); end self:set_persistent(false); module:fire_event("muc-room-destroyed", { room = self });