mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Merge pull request #1193 from GLolol/fix-disconnects
irclib: handle disconnections correctly for InspIRCd 2.0 networks
This commit is contained in:
commit
7884ed5133
@ -1278,7 +1278,7 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
|
||||
"""Handles ERROR messages."""
|
||||
log.warning('Error message from %s: %s', self.network, msg.args[0])
|
||||
if not self.zombie:
|
||||
if msg.args[0].startswith('Closing Link'):
|
||||
if msg.args[0].lower().startswith('closing link'):
|
||||
self.driver.reconnect()
|
||||
elif 'too fast' in msg.args[0]: # Connecting too fast.
|
||||
self.driver.reconnect(wait=True)
|
||||
|
Loading…
Reference in New Issue
Block a user