Log error when ZNC says a channel can't be joined

This commit is contained in:
Mark Veidemanis 2020-10-31 23:58:51 +00:00
parent fc3a349cb3
commit 16ab37cc0c
1 changed files with 2 additions and 1 deletions

View File

@ -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))