summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-07-17 22:17:49 +0200
committermathieui <mathieui@mathieui.net>2015-07-17 22:17:49 +0200
commitf9bb45f6e56d0c5ebd5d602677e9109f29ecf6b9 (patch)
tree58db768e904cf0d70e83b8988bf0bee406299735 /src
parent007459810a954b429b936bc1fcbb1e61ad9711a2 (diff)
downloadpoezio-f9bb45f6e56d0c5ebd5d602677e9109f29ecf6b9.tar.gz
poezio-f9bb45f6e56d0c5ebd5d602677e9109f29ecf6b9.tar.bz2
poezio-f9bb45f6e56d0c5ebd5d602677e9109f29ecf6b9.tar.xz
poezio-f9bb45f6e56d0c5ebd5d602677e9109f29ecf6b9.zip
Fix an ordering issues in the MUC userlist
users changing affiliations or roles weren’t moved around properly
Diffstat (limited to 'src')
-rw-r--r--src/tabs/muctab.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py
index 6c961874..486c9078 100644
--- a/src/tabs/muctab.py
+++ b/src/tabs/muctab.py
@@ -1540,8 +1540,10 @@ class MucTab(ChatTab):
self.core.on_user_changed_status_in_private('%s/%s' %
(from_room, from_nick),
msg)
+ self.users.remove(user)
# finally, effectively change the user status
user.update(affiliation, show, status, role)
+ bisect.insort_left(self.users, user)
def disconnect(self):
"""