Add comment to clarify why we ignore 1-letter-nicks in _prevent_highlight

This commit is contained in:
jesopo 2019-05-14 11:01:31 +01:00
parent 69691e9c79
commit b75fc02c4b

View file

@ -423,6 +423,8 @@ class Module(ModuleManager.BaseModule):
def _prevent_highlight(self, server, channel, s):
for user in channel.users:
if len(user.nickname) == 1:
# if we don't ignore 1-letter nicknames, the below while loop
# will fire indefininitely.
continue
s_lower = server.irc_lower(s)