Return chanlimit for each relay
This commit is contained in:
parent
ad7a5cfe49
commit
5c95f35c61
|
@ -321,10 +321,12 @@ class API(object):
|
||||||
to_append["chans"] = len(main.IRCPool[name].channels)
|
to_append["chans"] = len(main.IRCPool[name].channels)
|
||||||
to_append["nick"] = main.IRCPool[name].nickname
|
to_append["nick"] = main.IRCPool[name].nickname
|
||||||
to_append["conn"] = main.IRCPool[name].isconnected
|
to_append["conn"] = main.IRCPool[name].isconnected
|
||||||
|
to_append["limit"] = main.IRCPool[name].chanlimit
|
||||||
else:
|
else:
|
||||||
to_append["chans"] = 0
|
to_append["chans"] = 0
|
||||||
to_append["nick"] = None
|
to_append["nick"] = None
|
||||||
to_append["conn"] = False
|
to_append["conn"] = False
|
||||||
|
to_append["limit"] = None
|
||||||
relays.append(to_append)
|
relays.append(to_append)
|
||||||
|
|
||||||
return dumps({"relays": relays})
|
return dumps({"relays": relays})
|
||||||
|
|
Loading…
Reference in New Issue