server: Fix on_disconnect AttributeError when irc library lacks the method
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
9d7c278d1a
commit
27bd0c50c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue