Fix exception in commands.py any time anyone sends an empty or

whitespace-prefixed PRIVMSG
This commit is contained in:
jesopo 2018-09-19 00:44:04 +01:00
parent af01bccaa5
commit 11e62bb945

View file

@ -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)