Add comment to clarify why we ignore 1-letter-nicks in _prevent_highlight
This commit is contained in:
parent
69691e9c79
commit
b75fc02c4b
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue