aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-19 00:44:04 +0100
committerGravatar jesopo2018-09-19 00:44:04 +0100
commit11e62bb945b3efdd841d733ed3171bcd4679dfd6 (patch)
tree05abbfe66d62c176832bcd8da003d614b5846438
parentChange log level to show in logs as "[LEVEL]" instead of " - LEVEL - " (diff)
signature
Fix exception in commands.py any time anyone sends an empty or
whitespace-prefixed PRIVMSG
-rw-r--r--modules/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands.py b/modules/commands.py
index b96cdab1..436dd7f1 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -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)