From a732bcfc258bca7f8b2a9c83718c5e4efaa79e56 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 28 Jun 2019 23:33:14 +0100 Subject: [PATCH] Only accept highlight-commands when they have "," or ":" --- modules/commands/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py index fdb21075..48211162 100644 --- a/modules/commands/__init__.py +++ b/modules/commands/__init__.py @@ -62,8 +62,7 @@ class Module(ModuleManager.BaseModule): def is_highlight(self, server, s): if s and s[-1] in [":", ","]: - s = s[:-1] - return server.is_own_nickname(s) + return server.is_own_nickname(s[:-1]) def _get_aliases(self, server): return server.get_setting("command-aliases", {})