aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/ducks.py6
1 files 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)