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 9bcbb764ef
commit 8c4e269827
1 changed files with 3 additions and 1 deletions

View File

@ -2306,7 +2306,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):