diff options
| author | 2018-09-19 00:44:04 +0100 | |
|---|---|---|
| committer | 2018-09-19 00:44:04 +0100 | |
| commit | 11e62bb945b3efdd841d733ed3171bcd4679dfd6 (patch) | |
| tree | 05abbfe66d62c176832bcd8da003d614b5846438 | |
| parent | Change 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.py | 2 |
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) |
