From acc38b7460cf3923f9164045193b685a8153c0c9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 31 Mar 2016 13:20:03 +0100 Subject: made the args for IRCLineHandler functions global and added a timer-based channel join re-try. --- Timer.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Timer.py') 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): -- cgit v1.3.1-10-gc9f91