Skip self in nick completion

This commit is contained in:
Jean-Marie Traissard 2007-01-09 22:24:41 +00:00
parent 0b3af95972
commit 712b39bba7
1 changed files with 1 additions and 0 deletions

View File

@ -1520,6 +1520,7 @@ class GroupchatControl(ChatControlBase):
self.nick_hits = [] # clear the hit list self.nick_hits = [] # clear the hit list
list_nick = gajim.contacts.get_nick_list(self.account, list_nick = gajim.contacts.get_nick_list(self.account,
self.room_jid) self.room_jid)
list_nick.remove(self.nick) # Skip self
for nick in list_nick: for nick in list_nick:
if nick.lower().startswith(begin.lower()): if nick.lower().startswith(begin.lower()):
# the word is the begining of a nick # the word is the begining of a nick