Commits

Jason R. Coombs committed e62d2f7

Fixed issues with scheduling tasks under irc 2.0

  • Participants
  • Parent commits 159e2f7
  • Tags 1101.7.1

Comments (0)

Files changed (1)

pmxbot/botbase.py

 		if isinstance(when, datetime.datetime):
 			cmd = irc.client.DelayedCommand.at_time(
 				when, self.background_runner, arguments)
-			self.c._schedule_command(cmd)
+			self.c.irclibobj._schedule_command(cmd)
 			return
 		if not isinstance(when, datetime.time):
 			raise ValueError("when must be datetime, date, or time")
 			when += daily
 		cmd = irc.client.PeriodicCommandFixedDelay.at_time(
 			when, daily, self.background_runner, arguments)
-		self.c._schedule_command(cmd)
+		self.c.irclibobj._schedule_command(cmd)
 
 	def on_welcome(self, c, e):
 		self.c = c