diff options
author | mathieui <mathieui@mathieui.net> | 2013-02-15 21:22:08 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-02-15 21:22:08 +0100 |
commit | 23a1b4c353688c374812fff373213ca5f7ce4641 (patch) | |
tree | b91a0f31a1bca52d29ad828f82f1a7455d666b52 /src | |
parent | f4c275eb0787fe3b3ee185610f8a08430cbb2b53 (diff) | |
download | poezio-23a1b4c353688c374812fff373213ca5f7ce4641.tar.gz poezio-23a1b4c353688c374812fff373213ca5f7ce4641.tar.bz2 poezio-23a1b4c353688c374812fff373213ca5f7ce4641.tar.xz poezio-23a1b4c353688c374812fff373213ca5f7ce4641.zip |
Fix a potential traceback on /ignore
(if the room was not joined)
Diffstat (limited to 'src')
-rw-r--r-- | src/tabs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py index bab3f989..b81bce8b 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -837,7 +837,9 @@ class MucTab(ChatTab): def completion_ignore(self, the_input): """Completion for /ignore""" userlist = [user.nick for user in self.users] - userlist.remove(self.own_nick) + if self.own_nick in userlist: + userlist.remove(self.own_nick) + userlist.sort() return the_input.auto_completion(userlist, '', quotify=False) def completion_role(self, the_input): |