From 27bd0c50c19127ab1e15fcdd2e91937d804c1cd2 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 7 Mar 2026 15:55:24 +0700 Subject: [PATCH] server: Fix on_disconnect AttributeError when irc library lacks the method 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 --- nemubot/server/IRCLib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nemubot/server/IRCLib.py b/nemubot/server/IRCLib.py index cdd13cf..eb7c16f 100644 --- a/nemubot/server/IRCLib.py +++ b/nemubot/server/IRCLib.py @@ -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