Implement authentication detection

* pending command to see which instances have never authenticated
* authcheck command to see which instances are not currently
  authenticated
This commit is contained in:
2020-05-31 21:52:56 +01:00
parent 12db2f349e
commit 45070b06e2
7 changed files with 96 additions and 16 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 and main.network[net].relays[i]["registered"]:
if main.IRCPool[name].authenticated and main.network[net].relays[i]["registered"]:
existNum += 1
if existNum == relayNum:
return True