* small IRC fix and doc
authorOvidiu Constantin <ovidiu@mybox.ro>
Wed, 30 Nov 2011 15:08:01 +0000 (17:08 +0200)
committerOvidiu Constantin <ovidiu@mybox.ro>
Wed, 30 Nov 2011 15:08:01 +0000 (17:08 +0200)
README-IRC.txt [new file with mode: 0644]
server.py

diff --git a/README-IRC.txt b/README-IRC.txt
new file mode 100644 (file)
index 0000000..49650a8
--- /dev/null
@@ -0,0 +1,18 @@
+IRC is used by Electrum server to find 'peers' - other Electrum servers. The current list can be seen by running:
+
+./server.py peers
+
+The following config file options are used by the IRC part of Electrum server:
+
+[server]
+irc = yes
+host = fqdn.host.name.tld
+ircname = some short description
+
+'irc' is used to determine whether the IRC thread will be started or the Electrum server will run in private mode. In private mode, ./server.py peers will always return an empty list.
+
+'host' is a fqdn of your Electrum server. It is used both when binding the listener for incoming clien conections, and also as part of the realname field in IRC (see below).
+
+'ircname' is a short text that will be appended to 'host' when composing the IRC realname field:
+
+realname = 'host' + ' ' + 'ircname', for example 'fqdn.host.name.tld some short description'
index da2364c..693e45c 100755 (executable)
--- a/server.py
+++ b/server.py
@@ -40,6 +40,7 @@ config.set('server', 'host', 'ecdsa.org')
 config.set('server', 'port', 50000)
 config.set('server', 'password', '')
 config.set('server', 'irc', 'yes')
+config.set('server', 'ircname', 'Electrum server')
 config.add_section('database')
 config.set('database', 'type', 'psycopg2')
 config.set('database', 'database', 'abe')