From 23a1b4c353688c374812fff373213ca5f7ce4641 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 15 Feb 2013 21:22:08 +0100 Subject: Fix a potential traceback on /ignore (if the room was not joined) --- src/tabs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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): -- cgit v1.2.3