Don't attempt to register if it is disabled
This commit is contained in:
@@ -6,6 +6,11 @@ from copy import deepcopy
|
||||
from random import choice
|
||||
|
||||
def needToRegister(net):
|
||||
# Check if the network does not support authentication
|
||||
networkObj = main.network[net]
|
||||
if networkObj.auth == "none":
|
||||
return False
|
||||
# Check if the IRC network definition has registration disabled
|
||||
inst = selectInst(net)
|
||||
if "register" in inst.keys():
|
||||
if inst["register"]:
|
||||
|
||||
Reference in New Issue
Block a user