Commits

Jason R. Coombs committed 6eef427

A better fix for the throttler __call__

Comments (0)

Files changed (1)

         elapsed = time.time() - self.start
         must_wait = next(self.calls) / self.max_rate - elapsed
         time.sleep(max(0, must_wait))
-        return self.func(args[0])
+        return self.func(*args, **kwargs)
 
 class DCCConnectionError(IRCError):
     pass