mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Send an error message to plugins on disconnect.
This commit is contained in:
parent
6bcae9309e
commit
c73ca6941b
@ -679,8 +679,11 @@ class Irc(IrcCommandDispatcher):
|
||||
conf.supybot.protocols.irc.ping() and \
|
||||
now > self.lastping + conf.supybot.protocols.irc.ping.interval():
|
||||
if self.outstandingPing:
|
||||
log.warning('Ping sent at %s not replied to.',
|
||||
log.timestamp(self.lastping))
|
||||
s = 'Ping sent at %s not replied to.' % \
|
||||
log.timestamp(self.lastping)
|
||||
log.warning(s)
|
||||
# Let's notify the plugins that we're reconnecting.
|
||||
self.feedMsg(ircmsgs.error(s))
|
||||
self.driver.reconnect()
|
||||
elif not self.zombie:
|
||||
self.lastping = now
|
||||
|
Loading…
Reference in New Issue
Block a user