Only accept highlight-commands when they have "," or ":"
This commit is contained in:
parent
7091860e54
commit
a732bcfc25
1 changed files with 1 additions and 2 deletions
|
@ -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", {})
|
||||||
|
|
Loading…
Reference in a new issue