Commits

Jason R. Coombs  committed c69ec79

Make sure delay is always a timedelta, even if integer seconds are supplied.

  • Participants
  • Parent commits 1cac01f
  • Tags 1.1

Comments (0)

Files changed (1)

File irc/client.py

     @classmethod
     def at_time(cls, at, delay, function, arguments):
         cmd = cls.at_time(at, function, arguments)
+        if not isinstance(delay, datetime.timedelta):
+            delay = datetime.timedelta(seconds=delay)
         cmd.delay = delay
         return cmd