Add connected status to IRC info return and check when getting active relays

This commit is contained in:
2022-08-13 13:40:33 +01:00
parent 21ed66bc00
commit facf58ec2c
2 changed files with 3 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ def allRelaysActive(net):
for i in activeRelays:
name = net + str(i)
if name in main.IRCPool.keys():
if main.IRCPool[name].authenticated:
if main.IRCPool[name].authenticated and main.IRCPool[name].isconnected:
existNum += 1
debug(f"allRelaysActive() finished, {existNum}/{relayNum} relays active for {net}")
if existNum == relayNum: