From f9bb45f6e56d0c5ebd5d602677e9109f29ecf6b9 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 17 Jul 2015 22:17:49 +0200 Subject: [PATCH] Fix an ordering issues in the MUC userlist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit users changing affiliations or roles weren’t moved around properly --- src/tabs/muctab.py | 2 ++ 1 file changed, 2 insertions(+) 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): """