diff options
author | mathieui <mathieui@mathieui.net> | 2017-11-22 21:19:27 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-11-22 21:19:27 +0100 |
commit | 5f5cc186dc1e708b9894b02db57e3dad4ed7cb10 (patch) | |
tree | 8baa7cb3aca6ba1d86ce2259444b219328798771 | |
parent | 057f7ac9f5073b87b42da3509d03914a9e79a08b (diff) | |
download | poezio-5f5cc186dc1e708b9894b02db57e3dad4ed7cb10.tar.gz poezio-5f5cc186dc1e708b9894b02db57e3dad4ed7cb10.tar.bz2 poezio-5f5cc186dc1e708b9894b02db57e3dad4ed7cb10.tar.xz poezio-5f5cc186dc1e708b9894b02db57e3dad4ed7cb10.zip |
Fix the case when we receive an unavailable presence while joining
-rw-r--r-- | poezio/tabs/muctab.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 328c65ee..6d788b38 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -465,6 +465,8 @@ class MucTab(ChatTab): """ from_nick, _, affiliation, show, status, role, jid, typ = dissect_presence( presence) + if typ == 'unavailable': + return user_color = self.search_for_color(from_nick) new_user = User(from_nick, affiliation, show, status, role, jid, deterministic, user_color) |