do not complete our own nickname. fixed #2061
This commit is contained in:
parent
289f5e65b8
commit
7401c8ba57
1 changed files with 3 additions and 1 deletions
|
@ -528,8 +528,10 @@ class MucTab(ChatTab):
|
|||
"""
|
||||
if self.complete_commands(self.input):
|
||||
return
|
||||
# If we are not completing a command or a command's argument, complete a nick
|
||||
compare_users = lambda x: x.last_talked
|
||||
word_list = [user.nick for user in sorted(self._room.users, key=compare_users, reverse=True)]
|
||||
word_list = [user.nick for user in sorted(self._room.users, key=compare_users, reverse=True)\
|
||||
if user.nick != self._room.own_nick]
|
||||
after = config.get('after_completion', ',')+" "
|
||||
if ' ' not in self.input.get_text() or (self.input.last_completion and\
|
||||
self.input.get_text()[:-len(after)] == self.input.last_completion):
|
||||
|
|
Loading…
Reference in a new issue