From 69691e9c79b09a60d8e1d9a40b2112f0a295a3c3 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 14 May 2019 10:50:47 +0100 Subject: [PATCH] Don't prevent highlights for single-letter nicknames --- modules/github/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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)