# HG changeset patch # User daurnimator # Date 1397837973 14400 # Node ID bb75c011b15e06a83926c45fe1c08a12c07a9257 # Parent 7582deb8581291d720a945e8a829986542554053 plugins/muc/muc.lib: When user leaves; set their role to nil diff -r 7582deb85812 -r bb75c011b15e plugins/muc/muc.lib.lua --- 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);