From 5dcfa962dd3d1ec1cada8504b27060c955712db8 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Wed, 19 Jun 2013 15:33:42 -0400 Subject: [PATCH] Added clientStatus API call --- src/bitmessagemain.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 0eec7149..12564393 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -4647,6 +4647,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler): shared.UISignalQueue.put(('rerenderInboxFromLabels', '')) shared.UISignalQueue.put(('rerenderSubscriptions', '')) return 'Deleted subscription if it existed.' + elif method == 'clientStatus': + return '{ "networkConnections" : "%s" }' % str(len(shared.connectedHostsList)) else: return 'Invalid Method: %s' % method