From 55dfc625b32c60612a3045e2ac5cdaa13219e06e Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 15 May 2013 13:17:11 +0200 Subject: [PATCH] Fix a traceback on /nick [tab] (introduced in 686352d22bc2973cdb9a003353a9811e5587d177, because a nick bookmark can now be None) --- src/tabs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tabs.py b/src/tabs.py index a8d2a3cf..318f90b3 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -850,8 +850,7 @@ class MucTab(ChatTab): def completion_nick(self, the_input): """Completion for /nick""" nicks = [os.environ.get('USER'), config.get('default_nick', ''), self.core.get_bookmark_nickname(self.get_name())] - while nicks.count(''): - nicks.remove('') + nicks = [i for i in nicks if i] return the_input.auto_completion(nicks, '', quotify=False) def completion_recolor(self, the_input):