make empty blacklist not break everything
This commit is contained in:
parent
b8243374d4
commit
1dbdb1f546
|
@ -54,7 +54,7 @@ class OppaiBot(irc.IRCClient):
|
||||||
or users alike.
|
or users alike.
|
||||||
"""
|
"""
|
||||||
# More advanced logic is left as an exercise to the reader.
|
# 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):
|
if any(black_in_msg):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user