mirror of
https://github.com/JoinMarket-Org/joinmarket-clientserver.git
synced 2026-08-13 12:33:40 +02:00
fix loading of irc configuration
This commit is contained in:
parent
c833aa4df1
commit
426cb87039
1 changed files with 8 additions and 0 deletions
|
|
@ -370,8 +370,16 @@ def donation_address(reusable_donation_pubkey=None): #pragma: no cover
|
|||
log.debug('sending coins to ' + sender_address)
|
||||
return sender_address, sign_k
|
||||
|
||||
|
||||
def remove_unwanted_default_settings(config):
|
||||
for section in config.sections():
|
||||
if section.startswith('MESSAGING:'):
|
||||
config.remove_section(section)
|
||||
|
||||
|
||||
def load_program_config(config_path=None, bs=None):
|
||||
global_singleton.config.readfp(io.BytesIO(defaultconfig))
|
||||
remove_unwanted_default_settings(global_singleton.config)
|
||||
if not config_path:
|
||||
config_path = os.getcwd()
|
||||
global_singleton.config_location = os.path.join(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue