diff options
author | daurnimator <quae@daurnimator.com> | 2014-04-18 12:19:33 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-04-18 12:19:33 -0400 |
commit | 59c6047e77980b89431b1d59e1458976bfb6eb18 (patch) | |
tree | b86fc8d5554ce9e4abb87ec59c476c30c962f593 /plugins/muc | |
parent | d48aad1049c3842479c5224548ebc2beaf90fdb0 (diff) | |
download | prosody-59c6047e77980b89431b1d59e1458976bfb6eb18.tar.gz prosody-59c6047e77980b89431b1d59e1458976bfb6eb18.zip |
plugins/muc/muc.lib: When user leaves; set their role to nil
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/muc.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 53f91b83..61520354 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -405,6 +405,7 @@ function room_mt:handle_presence_to_occupant(origin, stanza) 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); |