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