Browse Source

* move server's hostname on IRC to realname, part 1: config file and connect command

283
root 13 years ago
parent
commit
51dd46e84e
  1. 1
      server/electrum.conf.sample
  2. 2
      server/server.py

1
server/electrum.conf.sample

@ -4,6 +4,7 @@ port = 50000
password = secret
banner = Welcome to Electrum!
irc = yes
ircname = public Electrum server
[database]
type = sqlite3

2
server/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

Loading…
Cancel
Save