there's no event in bootstrap_channel

This commit is contained in:
jesopo 2019-05-03 15:44:13 +01:00
parent 2fd92ce2fa
commit 8ac93d57f3

View file

@ -18,9 +18,9 @@ class Module(ModuleManager.BaseModule):
self.bootstrap_channel(event["channel"]) self.bootstrap_channel(event["channel"])
def bootstrap_channel(self, channel): def bootstrap_channel(self, channel):
if not hasattr(event["channel"], "duck_active"): if not hasattr(channel, "duck_active"):
event["channel"].duck_active = False channel.duck_active = False
event["channel"].duck_lines = 0 channel.duck_lines = 0
def _activity(self, channel): def _activity(self, channel):
self.bootstrap_channel(channel) self.bootstrap_channel(channel)