19 lines
572 B
Python
19 lines
572 B
Python
import main
|
|
|
|
class List:
|
|
def __init__(self, register):
|
|
register("list", self.list)
|
|
|
|
def list(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
|
|
if authed:
|
|
poolMap = []
|
|
for i in main.pool.keys():
|
|
poolMap.append("Server: %s" % i)
|
|
for x in main.pool[i].keys():
|
|
poolMap.append(" %s: %s" % (x, main.pool[i][x]))
|
|
poolMap.append("\n")
|
|
info("\n".join(poolMap))
|
|
return
|
|
else:
|
|
incUsage(None)
|