Renovate the module system and implement adding and resuming pool instances using the new relay/alias/network system
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import main
|
||||
from core.bot import deliverRelayCommands
|
||||
from utils.logging.log import *
|
||||
from core.helper import startBot
|
||||
|
||||
def provisionUserData(relay, alias, nick, altnick, ident, realname, password):
|
||||
commands = {}
|
||||
@@ -81,7 +82,10 @@ def provisionRelayForNetwork(relay, alias, network):
|
||||
else:
|
||||
main.pool[network+i] = {"relay": relay,
|
||||
"alias": alias,
|
||||
"network": network}
|
||||
"network": network,
|
||||
"enabled": main.config["ConnectOnCreate"]}
|
||||
main.saveConf("pool")
|
||||
if main.config["ConnectOnCreate"]:
|
||||
startBot(network+i)
|
||||
storedNetwork = True
|
||||
return network+i
|
||||
|
||||
Reference in New Issue
Block a user