Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 6108:aae7bc9d6e93
plugins/muc/muc: Add 'muc-occupant-left' event
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Tue, 18 Mar 2014 18:52:28 -0400 |
parent | 6107:5491be05b84c |
child | 6111:f8b94903be52 |
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 });