Commit 7c087d3b authored by Maxime Buquet's avatar Maxime Buquet

Display MUC status 333 as a leave even if 307 is included

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 9ce6cdfb
......@@ -546,6 +546,7 @@ class MucTab(ChatTab):
kick = '307' in status_codes and typ == 'unavailable'
ban = '301' in status_codes and typ == 'unavailable'
shutdown = '332' in status_codes and typ == 'unavailable'
server_initiated = '333' in status_codes and typ == 'unavailable'
non_member = '322' in status_codes and typ == 'unavailable'
user = self.get_user_by_name(from_nick)
# New user
......@@ -565,7 +566,7 @@ class MucTab(ChatTab):
self.core.on_user_left_private_conversation(
from_room, user, status)
self.on_user_banned(presence, user, from_nick)
elif kick:
elif kick and not server_initiated:
self.core.events.trigger('muc_kick', presence, self)
self.core.on_user_left_private_conversation(
from_room, user, status)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment