Software /
code /
prosody
Changeset
6227:bb75c011b15e
plugins/muc/muc.lib: When user leaves; set their role to nil
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Fri, 18 Apr 2014 12:19:33 -0400 |
parents | 6226:7582deb85812 |
children | 6228:4968d18e2c1e |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Fri Apr 18 12:19:04 2014 -0400 +++ b/plugins/muc/muc.lib.lua Fri Apr 18 12:19:33 2014 -0400 @@ -405,6 +405,7 @@ local dest_nick; if dest_occupant == nil then -- Session is leaving log("debug", "session %s is leaving occupant %s", real_jid, orig_occupant.nick); + orig_occupant.role = nil; orig_occupant:set_session(real_jid, stanza); else log("debug", "session %s is changing from occupant %s to %s", real_jid, orig_occupant.nick, dest_occupant.nick);