Unnecessary reset, changed logging message.

This commit is contained in:
Jeremy Fincher 2004-09-24 02:36:34 +00:00
parent b0931ea0ec
commit 243456aedd

View File

@ -688,10 +688,9 @@ class Irc(IrcCommandDispatcher):
conf.supybot.protocols.irc.ping() and \ conf.supybot.protocols.irc.ping() and \
now > self.lastping + conf.supybot.protocols.irc.ping.interval(): now > self.lastping + conf.supybot.protocols.irc.ping.interval():
if self.outstandingPing: if self.outstandingPing:
s = 'Reconnecting to %s, ping not replied to.' % self.server log.warning('Ping sent at %s not replied to.',
log.warning(s) log.timestamp(self.lastping))
self.driver.reconnect() self.driver.reconnect()
self.reset()
else: else:
self.lastping = now self.lastping = now
now = str(int(now)) now = str(int(now))