From 1993bcacc64246a49893a824d9592dc2c2f22e08 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Mon, 6 Nov 2023 16:04:46 -0600 Subject: [PATCH] code 520 --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index 949f615..7effa00 100644 --- a/bot.py +++ b/bot.py @@ -101,6 +101,10 @@ class bot: if origin != "null": sendmsg(f"{chan} is +i, and I'm not invited.", origin) break + elif code == 520: + self.log(f"Joining {chan} failed (+O)", "WARN") + if origin != "null": + sendmsg(f"{chan} is +O, and I'm not an operator.", origin) elif code == 366: log(f"Joining {chan} succeeded", server) if origin != "null":