|
|
|
@ -2,7 +2,7 @@ from copy import deepcopy
|
|
|
|
|
from random import choice
|
|
|
|
|
|
|
|
|
|
import main
|
|
|
|
|
from modules import provision, helpers
|
|
|
|
|
from modules import provision
|
|
|
|
|
from utils.logging.debug import debug
|
|
|
|
|
from utils.logging.log import error
|
|
|
|
|
|
|
|
|
@ -89,7 +89,8 @@ def registerAccount(net, num):
|
|
|
|
|
error("Cannot register for %s: function disabled" % (net))
|
|
|
|
|
return False
|
|
|
|
|
name = net + str(num)
|
|
|
|
|
main.IRCPool[name].msg(sinst["entity"], sinst["registermsg"])
|
|
|
|
|
if not main.IRCPool[name].authenticated:
|
|
|
|
|
main.IRCPool[name].msg(sinst["entity"], sinst["registermsg"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def confirmAccount(net, num, token):
|
|
|
|
@ -123,15 +124,14 @@ def confirmRegistration(net, num, negativepass=None):
|
|
|
|
|
|
|
|
|
|
def attemptManualAuthentication(net, num):
|
|
|
|
|
sinst = substitute(net, num)
|
|
|
|
|
obj = main.network[net]
|
|
|
|
|
identifymsg = sinst["identifymsg"]
|
|
|
|
|
entity = sinst["entity"]
|
|
|
|
|
name = f"{net}{num}"
|
|
|
|
|
print(f"SENDING `{identifymsg}` TO `{entity}` ON {name}")
|
|
|
|
|
if name not in main.IRCPool:
|
|
|
|
|
return
|
|
|
|
|
main.IRCPool[name].msg(entity, identifymsg)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def enableAuthentication(net, num, jump=True, run_now=False):
|
|
|
|
|
obj = main.network[net]
|
|
|
|
|
nick = main.alias[num]["nick"]
|
|
|
|
|