Don't prevent highlights for single-letter nicknames

This commit is contained in:
jesopo 2019-05-14 10:50:47 +01:00
parent e09529260a
commit 69691e9c79

View file

@ -422,6 +422,9 @@ class Module(ModuleManager.BaseModule):
def _prevent_highlight(self, server, channel, s):
for user in channel.users:
if len(user.nickname) == 1:
continue
s_lower = server.irc_lower(s)
while user.nickname_lower in s_lower:
index = s_lower.index(user.nickname_lower)