Check registration status before joining channels

Do not join channels if any relay for a network is unregistered.
This commit is contained in:
2020-05-31 13:09:58 +01:00
parent 4f9ca6088b
commit 5c6b626396
2 changed files with 5 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ def allRelaysActive(net):
for i in main.network[net].relays.keys():
name = net+str(i)
if name in main.IRCPool.keys():
if main.IRCPool[name].isconnected:
if main.IRCPool[name].isconnected and main.network[net].relays[i]["registered"]:
existNum += 1
if existNum == relayNum:
return True