fix: line might be empty
authorThomasV <thomasv@gitorious>
Wed, 13 Jun 2012 20:12:09 +0000 (00:12 +0400)
committerThomasV <thomasv@gitorious>
Wed, 13 Jun 2012 20:12:09 +0000 (00:12 +0400)
backends/irc/__init__.py

index edd9dc9..28e60d9 100644 (file)
@@ -49,6 +49,7 @@ class IrcThread(threading.Thread):
                     line = sf.readline()
                     line = line.rstrip('\r\n')
                     line = line.split()
+                    if not line: continue
                     if line[0]=='PING': 
                         s.send('PONG '+line[1]+'\n')
                     elif '353' in line: # answer to /names