diff options
| author | 2019-01-26 10:53:28 +0000 | |
|---|---|---|
| committer | 2019-01-26 10:53:28 +0000 | |
| commit | ed44e6f78b52fe766348856b7eff659fe728adea (patch) | |
| tree | 6fb36c39d7019cd912565b6bfb35e6ff2b04575a /modules/github | |
| parent | Actually 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.py | 6 |
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) |
