diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-24 13:30:48 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-24 13:30:48 +0100 |
commit | 0206920a10a279ee87baf3b0e51e62d9b0128b8a (patch) | |
tree | bc1c51b14cddb9d5a825a3856e2f7866e4d1260b /src | |
parent | 89900bdbec46ca230010cee9e7010e29dfb9da47 (diff) | |
download | poezio-0206920a10a279ee87baf3b0e51e62d9b0128b8a.tar.gz poezio-0206920a10a279ee87baf3b0e51e62d9b0128b8a.tar.bz2 poezio-0206920a10a279ee87baf3b0e51e62d9b0128b8a.tar.xz poezio-0206920a10a279ee87baf3b0e51e62d9b0128b8a.zip |
Fixes #2298
Diffstat (limited to 'src')
-rw-r--r-- | src/tabs.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py index d08a8188..b0185b27 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -543,8 +543,9 @@ class MucTab(ChatTab): def completion_version(self, the_input): """Completion for /version""" - userlist = [user.nick for user in self.users] - userlist.remove(self.own_nick) + compare_users = lambda x: x.last_talked + userlist = [user.nick for user in sorted(self.users, key=compare_users, reverse=True)\ + if user.nick != self.own_nick] contact_list = [contact.bare_jid for contact in roster.get_contacts()] userlist.extend(contact_list) return the_input.auto_completion(userlist, '') |