From d1e80a452945a425297dd8ac8373924d627da7aa Mon Sep 17 00:00:00 2001 From: Ovidiu Constantin Date: Sun, 27 Nov 2011 17:18:57 +0200 Subject: [PATCH] Privacy feature: allow running a private server, that does not register on IRC. New config option (default value = yes): [server] irc = no --- electrum.conf.sample | 1 + server.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/electrum.conf.sample b/electrum.conf.sample index dac7630..6aebfc3 100644 --- a/electrum.conf.sample +++ b/electrum.conf.sample @@ -3,6 +3,7 @@ host = localhost port = 50000 password = secret banner = Welcome to Electrum! +irc = yes [database] type = sqlite3 diff --git a/server.py b/server.py index 4cd4b5b..260ad81 100755 --- a/server.py +++ b/server.py @@ -39,6 +39,7 @@ config.set('server','banner', 'Welcome to Electrum!') config.set('server', 'host', 'ecdsa.org') config.set('server', 'port', 50000) config.set('server', 'password', '') +config.set('server', 'irc', 'yes') config.add_section('database') config.set('database', 'type', 'psycopg2') config.set('database', 'database', 'abe') @@ -519,7 +520,8 @@ if __name__ == '__main__': thread.start_new_thread(listen_thread, (store,)) thread.start_new_thread(clean_session_thread, ()) - thread.start_new_thread(irc_thread, ()) + if (config.get('server','irc') == 'yes' ): + thread.start_new_thread(irc_thread, ()) while not stopping: try: -- 1.7.1