From 1c8a57404a81b34d01d4bfe1ae4c4c9cf567c2ec Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 29 Jul 2013 22:05:39 +0200 Subject: [PATCH] don't cycle through blobk nicknames when autocompletting nicks. Fixes #7398 --- src/groupchat_control.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 39a1d8225..238b853c2 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -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):