Fix highlight checking in commands.py
This commit is contained in:
parent
e2e4184bdc
commit
bb5ff8ee0d
1 changed files with 3 additions and 3 deletions
|
@ -93,9 +93,9 @@ class Module(object):
|
||||||
).get_hooks()[0]
|
).get_hooks()[0]
|
||||||
|
|
||||||
def is_highlight(self, server, s):
|
def is_highlight(self, server, s):
|
||||||
return s.lower() == server.nickname_lower or (s.lower().startswith(
|
if s[-1] in [":", ","]:
|
||||||
server.nickname_lower) and len(s) == len(server.nickname_lower
|
s = s[:-1]
|
||||||
)+1 and s[-1] in [":", ","])
|
return server.is_own_nickname(s)
|
||||||
|
|
||||||
def message(self, event, command, args_index=1):
|
def message(self, event, command, args_index=1):
|
||||||
if self.has_command(command):
|
if self.has_command(command):
|
||||||
|
|
Loading…
Reference in a new issue