git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
7844019
)
* move server's hostname on IRC to realname, part 1: config file and connect command
author
root
<root@jupiter.(none)>
Wed, 30 Nov 2011 13:34:16 +0000 (15:34 +0200)
committer
root
<root@jupiter.(none)>
Wed, 30 Nov 2011 13:34:16 +0000 (15:34 +0200)
electrum.conf.sample
patch
|
blob
|
history
server.py
patch
|
blob
|
history
diff --git
a/electrum.conf.sample
b/electrum.conf.sample
index
6aebfc3
..
c197750
100644
(file)
--- a/
electrum.conf.sample
+++ b/
electrum.conf.sample
@@
-4,6
+4,7
@@
port = 50000
password = secret
banner = Welcome to Electrum!
irc = yes
+ircname = public Electrum server
[database]
type = sqlite3
diff --git
a/server.py
b/server.py
index
b58e99a
..
baf6391
100755
(executable)
--- a/
server.py
+++ b/
server.py
@@
-443,7
+443,7
@@
def irc_thread():
try:
s = socket.socket()
s.connect(('irc.freenode.net', 6667))
- s.send('USER '+config.get('server','host')+' '+NICK+' bla :'+NICK+'\n')
+ s.send('USER electrum 0 * '+config.get('server','host')+' '+config.get('server','ircname')+'\n')
s.send('NICK '+NICK+'\n')
s.send('JOIN #electrum\n')
t = 0