Litecoin servers login to IRC with user name starting with EL_
authorcoblee <chocobo@alum.mit.edu>
Thu, 19 Jul 2012 11:05:16 +0000 (04:05 -0700)
committercoblee <chocobo@alum.mit.edu>
Thu, 19 Jul 2012 11:05:16 +0000 (04:05 -0700)
backends/irc/__init__.py

index 8b35e2c..bd981a3 100644 (file)
@@ -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