aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-14 10:50:47 +0100
committerGravatar jesopo2019-05-14 10:50:47 +0100
commit69691e9c79b09a60d8e1d9a40b2112f0a295a3c3 (patch)
tree1f16a45b35989c2882fe28e06216ea0cb5b66cca /modules
parentPass server object in to _prevent_highlight (diff)
signature
Don't prevent highlights for single-letter nicknames
Diffstat (limited to 'modules')
-rw-r--r--modules/github/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py
index 907993dc..8d36fb6e 100644
--- a/modules/github/__init__.py
+++ b/modules/github/__init__.py
@@ -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)