Fix the all and allc commands so they work with the new data format

This commit is contained in:
2019-09-29 14:57:36 +01:00
parent 15ca45e5df
commit 355a80b19b
8 changed files with 45 additions and 35 deletions

View File

@@ -25,11 +25,13 @@ class Network:
self.last += 1
num = self.last
self.relays[num] = {
"enabled": False,
"enabled": main.config["ConnectOnCreate"],
"net": self.net,
"id": num
}
self.aliases[num] = alias.generate_alias()
if main.config["ConnectOnCreate"]:
self.start_bot(num)
return num, self.aliases[num]["nick"]
def delete_relay(self, id):