diff options
author | mathieui <mathieui@mathieui.net> | 2015-07-17 22:17:49 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-07-17 22:17:49 +0200 |
commit | f9bb45f6e56d0c5ebd5d602677e9109f29ecf6b9 (patch) | |
tree | 58db768e904cf0d70e83b8988bf0bee406299735 /src | |
parent | 007459810a954b429b936bc1fcbb1e61ad9711a2 (diff) | |
download | poezio-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.py | 2 |
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): """ |