From b50a6aef00ada7cb227e0a965e0d783da63edf2f Mon Sep 17 00:00:00 2001 From: 9pfs <9pfs@amcforum.wiki> Date: Wed, 1 May 2024 00:54:52 +0000 Subject: [PATCH] try to fix --- handlers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/handlers.py b/handlers.py index 50e7f5b..73e3a84 100644 --- a/handlers.py +++ b/handlers.py @@ -172,6 +172,10 @@ def PART(bot: bare.bot, msg: str) -> tuple[None, None]: bot.channels.pop(channel, None) return None, None +def QUIT(bot: bare.bot, msg: str) -> tuple[None, None]: + if bot.server == "replirc": + if msg.split("!", 1)[0][1:] == "FireMCBot": + bot.send("TOPIC #firemc :FireMC Relay channel (offline)\n") def NULL(bot: bare.bot, msg: str) -> tuple[None, None]: return None, None @@ -186,4 +190,5 @@ handles: dict[ "PART": PART, "MODE": NULL, "TOPIC": NULL, + "QUIT": QUIT }