From 5c95f35c61fc7bf68b243ec3852f5129c6933df7 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 13 Aug 2022 21:22:43 +0100 Subject: [PATCH] Return chanlimit for each relay --- api/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/views.py b/api/views.py index e8fc7a1..35b17b6 100644 --- a/api/views.py +++ b/api/views.py @@ -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})