aboutsummaryrefslogtreecommitdiff
path: root/modules/github
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-14 11:01:31 +0100
committerGravatar jesopo2019-05-14 11:01:31 +0100
commitb75fc02c4bcd7de9fae804fd6969d4915ee4aa51 (patch)
treeff0c994abde0fd6dee37377b344eab46044eb606 /modules/github
parentDon't prevent highlights for single-letter nicknames (diff)
signature
Add comment to clarify why we ignore 1-letter-nicks in _prevent_highlight
Diffstat (limited to 'modules/github')
-rw-r--r--modules/github/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py
index 8d36fb6e..f447c43d 100644
--- a/modules/github/__init__.py
+++ b/modules/github/__init__.py
@@ -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)