summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tabs.py4
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):