Don't send ducks when they're disabled.
This commit is contained in:
parent
a0bb738abc
commit
ecb8698fb7
1 changed files with 2 additions and 0 deletions
|
@ -154,6 +154,8 @@ class Module(object):
|
|||
channel.games["ducks"]["duck_spawned"] = 1
|
||||
|
||||
def channel_message(self, event):
|
||||
if not event["channel"].get_setting("ducks-enabled", False):
|
||||
return
|
||||
channel = event["channel"]
|
||||
|
||||
if "ducks" not in channel.games.keys():
|
||||
|
|
Loading…
Reference in a new issue