From 8ac93d57f37b779cd68a5f90d5650cd07e4a671a Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 3 May 2019 15:44:13 +0100 Subject: [PATCH] there's no `event` in bootstrap_channel --- modules/ducks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ducks.py b/modules/ducks.py index 601565ac..b617929b 100644 --- a/modules/ducks.py +++ b/modules/ducks.py @@ -18,9 +18,9 @@ class Module(ModuleManager.BaseModule): self.bootstrap_channel(event["channel"]) def bootstrap_channel(self, channel): - if not hasattr(event["channel"], "duck_active"): - event["channel"].duck_active = False - event["channel"].duck_lines = 0 + if not hasattr(channel, "duck_active"): + channel.duck_active = False + channel.duck_lines = 0 def _activity(self, channel): self.bootstrap_channel(channel)