Check registration status before joining channels
Do not join channels if any relay for a network is unregistered.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user