From 48a3bdfefc5d85f03ac24ba7d8554f5d723df507 Mon Sep 17 00:00:00 2001 From: "Grant T. Olson" Date: Wed, 4 Sep 2013 19:25:44 -0400 Subject: [PATCH] Add chan true/false to listAddresses results --- src/bitmessagemain.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index a73f81e1..ab4e80ba 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -168,8 +168,12 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler): data if len(data) > 20: data += ',' + if shared.config.has_option(addressInKeysFile, 'chan'): + chan = shared.config.getboolean(addressInKeysFile, 'chan') + else: + chan = False data += json.dumps({'label': shared.config.get(addressInKeysFile, 'label'), 'address': addressInKeysFile, 'stream': - streamNumber, 'enabled': shared.config.getboolean(addressInKeysFile, 'enabled')}, indent=4, separators=(',', ': ')) + streamNumber, 'enabled': shared.config.getboolean(addressInKeysFile, 'enabled'), 'chan': chan}, indent=4, separators=(',', ': ')) data += ']}' return data elif method == 'listAddressBook' or method == 'listAddressbook': -- 2.45.1