Make the stats command aware of duplicate networks
This commit is contained in:
10
main.py
10
main.py
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user