Don't send ducks when they're disabled.

This commit is contained in:
jesopo 2018-09-19 14:25:33 +01:00
parent a0bb738abc
commit ecb8698fb7

View file

@ -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():