From 11e62bb945b3efdd841d733ed3171bcd4679dfd6 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Sep 2018 00:44:04 +0100 Subject: [PATCH] Fix exception in commands.py any time anyone sends an empty or whitespace-prefixed PRIVMSG --- modules/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)