aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-03 16:26:35 +0100
committerGravatar jesopo2019-05-03 16:26:35 +0100
commitc89742a7e70a8e419583451b622853cc9604fb9d (patch)
tree5724d0da40408fe986e9086b4a13c96dfd41dfb2 /modules
parentChange duck-spawn change to 10% per message after 20 messages (diff)
signature
Reset duck_lines to 0 when a duck has spawned
Diffstat (limited to 'modules')
-rw-r--r--modules/ducks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/ducks.py b/modules/ducks.py
index 1d445984..c17cf5be 100644
--- a/modules/ducks.py
+++ b/modules/ducks.py
@@ -35,6 +35,7 @@ class Module(ModuleManager.BaseModule):
show_duck = random.SystemRandom().randint(1, 10) == 1
if show_duck:
+ channel.duck_lines = 0
self._trigger_duck(channel)
@utils.hook("received.join")