Fix a traceback on /nick [tab]
(introduced in 686352d22b
, because a
nick bookmark can now be None)
This commit is contained in:
parent
58174d1bf1
commit
55dfc625b3
1 changed files with 1 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue