Provision relay on creation

This commit is contained in:
Mark Veidemanis 2022-08-13 00:18:06 +01:00
parent acc363d207
commit c3fd8a97f7
1 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,5 @@
from copy import deepcopy from copy import deepcopy
from modules import provision
from twisted.internet import reactor from twisted.internet import reactor
from twisted.internet.ssl import DefaultOpenSSLContextFactory from twisted.internet.ssl import DefaultOpenSSLContextFactory
@ -8,6 +9,7 @@ from core.bot import IRCBotFactory
from modules import alias from modules import alias
from modules.chankeep import nukeNetwork from modules.chankeep import nukeNetwork
from modules.regproc import needToRegister from modules.regproc import needToRegister
from modules.provision import provisionRelay
from utils.deliver_relay_commands import deliverRelayCommands from utils.deliver_relay_commands import deliverRelayCommands
from utils.get import getRelay from utils.get import getRelay
from utils.logging.log import log from utils.logging.log import log
@ -77,6 +79,7 @@ class Network:
self.aliases[num] = {"password": password} self.aliases[num] = {"password": password}
# if main.config["ConnectOnCreate"]: -- Done in provision # if main.config["ConnectOnCreate"]: -- Done in provision
# self.start_bot(num) # self.start_bot(num)
provisionRelay(num, self.net)
return num, main.alias[num]["nick"] return num, main.alias[num]["nick"]
def enable_relay(self, num): def enable_relay(self, num):