Commits

Jason R. Coombs committed 1ecdf30

Fixed an AttributeError

Comments (0)

Files changed (1)

 		for action in _at_registry:
 			self._schedule_at(connection, *action)
 
-		self.set_keepalive(connection)
+		self._set_keepalive(connection)
 
 	def _set_keepalive(self, connection):
 		if 'TCP keepalive' not in pmxbot.config:
 			period = datetime.timedelta(seconds=period)
 		if isinstance(period, basestring):
 			period = dateutil.parse_timedelta(period)
+		log.info("Setting keepalive for %s", period)
 		pinger = functools.partial(connection.ping, 'keep-alive')
 		connection.execute_every(period, pinger)
 
-
 	def on_join(self, connection, event):
 		nick = event.source.nick
 		channel = event.target