Fix exception in commands.py any time anyone sends an empty or
whitespace-prefixed PRIVMSG
This commit is contained in:
parent
af01bccaa5
commit
11e62bb945
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class Module(object):
|
|||
).get_hooks()[0]
|
||||
|
||||
def is_highlight(self, server, s):
|
||||
if s[-1] in [":", ","]:
|
||||
if s and s[-1] in [":", ","]:
|
||||
s = s[:-1]
|
||||
return server.is_own_nickname(s)
|
||||
|
||||
|
|
Loading…
Reference in a new issue