server: Fix on_disconnect AttributeError when irc library lacks the method
All checks were successful
continuous-integration/drone/push Build is passing

Replace super().on_disconnect() call (absent in some irc library versions)
with self.jump_server() which is the actual reconnect method provided by
SingleServerIRCBot.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nemunaire 2026-03-07 15:55:24 +07:00
commit 27bd0c50c1

View file

@ -66,7 +66,7 @@ class _IRCBotAdapter(irc.bot.SingleServerIRCBot):
def on_disconnect(self, connection, event):
"""Reconnect automatically unless we are shutting down."""
if not self._stop_event.is_set():
super().on_disconnect(connection, event)
self.jump_server()
# Connection lifecycle