From c3fd8a97f73e71b3ac1ea3142e0a21d74cbb8491 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 13 Aug 2022 00:18:06 +0100 Subject: [PATCH] Provision relay on creation --- modules/network.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/network.py b/modules/network.py index 758391e..233b76b 100644 --- a/modules/network.py +++ b/modules/network.py @@ -1,4 +1,5 @@ from copy import deepcopy +from modules import provision from twisted.internet import reactor from twisted.internet.ssl import DefaultOpenSSLContextFactory @@ -8,6 +9,7 @@ from core.bot import IRCBotFactory from modules import alias from modules.chankeep import nukeNetwork from modules.regproc import needToRegister +from modules.provision import provisionRelay from utils.deliver_relay_commands import deliverRelayCommands from utils.get import getRelay from utils.logging.log import log @@ -77,6 +79,7 @@ class Network: self.aliases[num] = {"password": password} # if main.config["ConnectOnCreate"]: -- Done in provision # self.start_bot(num) + provisionRelay(num, self.net) return num, main.alias[num]["nick"] def enable_relay(self, num):