From 58f67591ac769a92996fdd4a76e048888d416bb0 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Fri, 19 Apr 2024 20:33:40 -0500 Subject: [PATCH] Ignore server requests that we can't handle --- handlers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/handlers.py b/handlers.py index 16f6ddc..50e7f5b 100644 --- a/handlers.py +++ b/handlers.py @@ -173,6 +173,10 @@ def PART(bot: bare.bot, msg: str) -> tuple[None, None]: return None, None +def NULL(bot: bare.bot, msg: str) -> tuple[None, None]: + return None, None + + handles: dict[ str, Callable[[bare.bot, str], Union[tuple[None, None], tuple[str, str]]] ] = { @@ -180,4 +184,6 @@ handles: dict[ "NICK": NICK, "KICK": KICK, "PART": PART, + "MODE": NULL, + "TOPIC": NULL, }