From 4669096fcbcc39ae4faf3cd0728dc417cbc38478 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:39:57 +0100 Subject: [PATCH] Don't attempt secondary registration if it is disabled --- core/bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/bot.py b/core/bot.py index ff0bde7..375703d 100644 --- a/core/bot.py +++ b/core/bot.py @@ -559,8 +559,9 @@ class IRCBot(IRCClient): "registered" ]: # TODO: add check for register request sent, only send it once if main.config["AutoReg"]: - self._regAttempt = reactor.callLater(5, regproc.registerAccount, self.net, self.num) - # regproc.registerAccount(self.net, self.num) + if not self.authenticated: + self._regAttempt = reactor.callLater(5, regproc.registerAccount, self.net, self.num) + # regproc.registerAccount(self.net, self.num) try: self.chanlimit = int(chanlimit) except TypeError: