Make the stats command aware of duplicate networks

This commit is contained in:
2018-10-21 17:14:50 +01:00
parent 7cd6bc3616
commit 3bf361134f
3 changed files with 25 additions and 8 deletions

10
main.py
View File

@@ -31,8 +31,14 @@ def nets():
if not "pool" in globals():
return
networks = set()
for i in pool:
networks.add("".join([x for x in i if not i in digits]))
for i in pool.keys():
networks.add("".join([x for x in i if not x in digits]))
return networks
def liveNets():
networks = set()
for i in IRCPool.keys():
networks.add("".join([x for x in i if not x in digits]))
return networks
def register(command, function):