aboutsummaryrefslogtreecommitdiff
path: root/modules/github
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-26 10:53:28 +0000
committerGravatar jesopo2019-01-26 10:53:28 +0000
commited44e6f78b52fe766348856b7eff659fe728adea (patch)
tree6fb36c39d7019cd912565b6bfb35e6ff2b04575a /modules/github
parentActually use the output of _prevent_highlight (github) (diff)
signature
Use .lower() on nickname, as we're using that on `s` and nickname_lower uses
special irc casemapping (github)
Diffstat (limited to 'modules/github')
-rw-r--r--modules/github/module.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/github/module.py b/modules/github/module.py
index c8b7c4f9..55abe233 100644
--- a/modules/github/module.py
+++ b/modules/github/module.py
@@ -342,9 +342,9 @@ class Module(ModuleManager.BaseModule):
def _prevent_highlight(self, channel, s):
for user in channel.users:
- while user.nickname_lower in s.lower():
- index = s.lower().index(user.nickname_lower)
- length = len(user.nickname_lower)
+ while user.nickname.lower() in s.lower():
+ index = s.lower().index(user.nickname.lower())
+ length = len(user.nickname.lower())
original = s[index:index+length]
original = utils.prevent_highlight(original)