Diff

plugins/muc/muc.lib.lua @ 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
parent 6226:7582deb85812
child 6229:8aa59b73f801
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);