From: coblee Date: Thu, 19 Jul 2012 11:05:16 +0000 (-0700) Subject: Litecoin servers login to IRC with user name starting with EL_ X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=commitdiff_plain;h=8257da318391fdd14cf79e72ecd3d90178d4c6cc;hp=6312a742badf1f7c11400a390d5d08afd2c99cfb Litecoin servers login to IRC with user name starting with EL_ --- diff --git a/backends/irc/__init__.py b/backends/irc/__init__.py index 8b35e2c..bd981a3 100644 --- a/backends/irc/__init__.py +++ b/backends/irc/__init__.py @@ -41,7 +41,7 @@ class IrcThread(threading.Thread): s = socket.socket() s.connect(('irc.freenode.net', 6667)) s.send('USER electrum 0 * :' + self.host + ' ' + ircname + '\n') - s.send('NICK E_' + self.nick + '\n') + s.send('NICK EL_' + self.nick + '\n') s.send('JOIN #electrum\n') sf = s.makefile('r', 0) t = 0 @@ -55,7 +55,7 @@ class IrcThread(threading.Thread): elif '353' in line: # answer to /names k = line.index('353') for item in line[k+1:]: - if item[0:2] == 'E_': + if item[0:2] == 'EL_': s.send('WHO %s\n'%item) elif '352' in line: # answer to /who # warning: this is a horrible hack which apparently works