aboutsummaryrefslogtreecommitdiff
path: root/Timer.py
diff options
context:
space:
mode:
authorGravatar jesopo2016-03-31 13:20:03 +0100
committerGravatar jesopo2016-03-31 13:20:03 +0100
commitacc38b7460cf3923f9164045193b685a8153c0c9 (patch)
treeb6449195f50a473022cce73b97bdb629e75682f3 /Timer.py
parentadded CTCP SOURCE and TIME responses. (diff)
made the args for IRCLineHandler functions global and added a timer-based channel join re-try.
Diffstat (limited to 'Timer.py')
-rw-r--r--Timer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Timer.py b/Timer.py
index 24ca5b87..24cdaaed 100644
--- a/Timer.py
+++ b/Timer.py
@@ -7,6 +7,7 @@ class Timer(object):
self.kwargs = kwargs
self.args = args
self._done = False
+ self.call_count = 0
def set_started_time(self):
self.started_time = time.time()
@@ -19,6 +20,7 @@ class Timer(object):
def call(self):
self._done = True
+ self.call_count +=1
self.function(self, *self.args, **self.kwargs)
def redo(self):