Skip self in nick completion
This commit is contained in:
parent
0b3af95972
commit
712b39bba7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue