summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-05-15 13:17:11 +0200
committermathieui <mathieui@mathieui.net>2013-05-15 13:17:24 +0200
commit55dfc625b32c60612a3045e2ac5cdaa13219e06e (patch)
tree507cfdc2871f53d50c202854534759a8c585acb6 /src
parent58174d1bf16cede6e264f7a07d3414554dd7ed9b (diff)
downloadpoezio-55dfc625b32c60612a3045e2ac5cdaa13219e06e.tar.gz
poezio-55dfc625b32c60612a3045e2ac5cdaa13219e06e.tar.bz2
poezio-55dfc625b32c60612a3045e2ac5cdaa13219e06e.tar.xz
poezio-55dfc625b32c60612a3045e2ac5cdaa13219e06e.zip
Fix a traceback on /nick [tab]
(introduced in 686352d22bc2973cdb9a003353a9811e5587d177, because a nick bookmark can now be None)
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py3
1 files changed, 1 insertions, 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):