diff options
| author | 2016-03-31 13:20:03 +0100 | |
|---|---|---|
| committer | 2016-03-31 13:20:03 +0100 | |
| commit | acc38b7460cf3923f9164045193b685a8153c0c9 (patch) | |
| tree | b6449195f50a473022cce73b97bdb629e75682f3 /Timer.py | |
| parent | added 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.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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): |
