Don't attempt secondary registration if it is disabled
This commit is contained in:
parent
404fdb000f
commit
4669096fcb
|
@ -559,6 +559,7 @@ 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"]:
|
||||||
|
if not self.authenticated:
|
||||||
self._regAttempt = reactor.callLater(5, regproc.registerAccount, self.net, self.num)
|
self._regAttempt = reactor.callLater(5, regproc.registerAccount, self.net, self.num)
|
||||||
# regproc.registerAccount(self.net, self.num)
|
# regproc.registerAccount(self.net, self.num)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue