From 1dbdb1f54663251705a63b954ce1905f1730d41a Mon Sep 17 00:00:00 2001 From: iou1name Date: Fri, 18 May 2018 17:25:18 -0400 Subject: [PATCH] make empty blacklist not break everything --- oppaiBot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oppaiBot.py b/oppaiBot.py index cbf0944..3266b5d 100755 --- a/oppaiBot.py +++ b/oppaiBot.py @@ -54,7 +54,7 @@ class OppaiBot(irc.IRCClient): or users alike. """ # More advanced logic is left as an exercise to the reader. - black_in_msg = [tag in message for tag in self.blacklist] + black_in_msg = [tag in message for tag in self.blacklist if tag] if any(black_in_msg): return