don't cycle through blobk nicknames when autocompletting nicks. Fixes #7398

This commit is contained in:
Yann Leboulanger 2013-07-29 22:05:39 +02:00
parent ae873991a7
commit 1c8a57404a
1 changed files with 3 additions and 1 deletions

View File

@ -2297,7 +2297,9 @@ class GroupchatControl(ChatControlBase):
list_nick.remove(self.nick) # Skip self
for nick in list_nick:
if nick.lower().startswith(begin.lower()):
fjid = self.room_jid + '/' + nick
if nick.lower().startswith(begin.lower()) and not \
helpers.jid_is_blocked(self.account, fjid):
# the word is the begining of a nick
self.nick_hits.append(nick)
if len(self.nick_hits):