aboutsummaryrefslogtreecommitdiff
path: root/src/Timers.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-28 17:01:41 +0100
committerGravatar jesopo2018-09-28 17:01:41 +0100
commit5cd1936af98d48eb57e0a315c254fe80f8252350 (patch)
treeeea0d46e3c076cc278b081c5955da431b47ddf80 /src/Timers.py
parentCorrectly access bot_settings in Timers.py (diff)
signature
Correct syntax of event call in Timers.call
Diffstat (limited to 'src/Timers.py')
-rw-r--r--src/Timers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Timers.py b/src/Timers.py
index ec2d98e5..7da23f01 100644
--- a/src/Timers.py
+++ b/src/Timers.py
@@ -69,6 +69,7 @@ class Timers(object):
for timer in self.timers[:]:
if timer.due():
timer.finish()
- self.events.on("timer.%s" % timer.name, timer=timer)
+ self.events.on("timer.%s" % timer.name).call(timer=timer,
+ **timer.kwargs)
if timer.done():
self._remove(timer)