mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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 \
|
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:
|
||||||
log.warning('Ping sent at %s not replied to.',
|
s = 'Ping sent at %s not replied to.' % \
|
||||||
log.timestamp(self.lastping))
|
log.timestamp(self.lastping)
|
||||||
|
log.warning(s)
|
||||||
|
# Let's notify the plugins that we're reconnecting.
|
||||||
|
self.feedMsg(ircmsgs.error(s))
|
||||||
self.driver.reconnect()
|
self.driver.reconnect()
|
||||||
elif not self.zombie:
|
elif not self.zombie:
|
||||||
self.lastping = now
|
self.lastping = now
|
||||||
|
Loading…
x
Reference in New Issue
Block a user