From 16ab37cc0c72eb55339261261e78e68915473766 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 31 Oct 2020 23:58:51 +0000 Subject: [PATCH] Log error when ZNC says a channel can't be joined --- core/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/bot.py b/core/bot.py index c1be085..f831286 100644 --- a/core/bot.py +++ b/core/bot.py @@ -240,6 +240,8 @@ class IRCBot(IRCClient): if "Connected!" in cast["msg"]: log("ZNC connected on %s - %i" % (self.net, self.num)) self.isconnected = True + if "could not be joined, disabling it" in cast["msg"]: + error(cast["msg"]) # # don't reprocess the same message twice @@ -650,7 +652,6 @@ class IRCBot(IRCClient): return else: self.authenticated = True - warn("Won't send registration ping for %s - %i" % (self.net, self.num)) def signedOn(self): log("signed on: %s - %i" % (self.net, self.num))