Only accept highlight-commands when they have "," or ":"

This commit is contained in:
jesopo 2019-06-28 23:33:14 +01:00
parent 7091860e54
commit a732bcfc25

View file

@ -62,8 +62,7 @@ class Module(ModuleManager.BaseModule):
def is_highlight(self, server, s): def is_highlight(self, server, s):
if s and s[-1] in [":", ","]: if s and s[-1] in [":", ","]:
s = s[:-1] return server.is_own_nickname(s[:-1])
return server.is_own_nickname(s)
def _get_aliases(self, server): def _get_aliases(self, server):
return server.get_setting("command-aliases", {}) return server.get_setting("command-aliases", {})