Return chanlimit for each relay

This commit is contained in:
Mark Veidemanis 2022-08-13 21:22:43 +01:00
parent b83062c34f
commit c7fa508a38
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 0 deletions

View File

@ -321,10 +321,12 @@ class API(object):
to_append["chans"] = len(main.IRCPool[name].channels)
to_append["nick"] = main.IRCPool[name].nickname
to_append["conn"] = main.IRCPool[name].isconnected
to_append["limit"] = main.IRCPool[name].chanlimit
else:
to_append["chans"] = 0
to_append["nick"] = None
to_append["conn"] = False
to_append["limit"] = None
relays.append(to_append)
return dumps({"relays": relays})