Don't attempt secondary registration if it is disabled

This commit is contained in:
Mark Veidemanis 2022-07-21 13:39:57 +01:00
parent e4a6e0d3c2
commit 9d4d31fdc2
1 changed files with 3 additions and 2 deletions

View File

@ -559,8 +559,9 @@ class IRCBot(IRCClient):
"registered" "registered"
]: # TODO: add check for register request sent, only send it once ]: # TODO: add check for register request sent, only send it once
if main.config["AutoReg"]: if main.config["AutoReg"]:
self._regAttempt = reactor.callLater(5, regproc.registerAccount, self.net, self.num) if not self.authenticated:
# regproc.registerAccount(self.net, self.num) self._regAttempt = reactor.callLater(5, regproc.registerAccount, self.net, self.num)
# regproc.registerAccount(self.net, self.num)
try: try:
self.chanlimit = int(chanlimit) self.chanlimit = int(chanlimit)
except TypeError: except TypeError: