aboutsummaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-28 23:33:14 +0100
committerGravatar jesopo2019-06-28 23:33:14 +0100
commita732bcfc258bca7f8b2a9c83718c5e4efaa79e56 (patch)
tree2d417a3d4ea8928e6e6390a0b1906bf26148fa35 /modules/commands
parentSetting.__init__ call in OptionsSetting ctor needs `self` param (diff)
signature
Only accept highlight-commands when they have "," or ":"
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/__init__.py3
1 files changed, 1 insertions, 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", {})