From 96733a4111d795b6a60dd650d690a9cfd3651efc Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 14 Jun 2012 00:12:09 +0400 Subject: [PATCH] fix: line might be empty --- backends/irc/__init__.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/backends/irc/__init__.py b/backends/irc/__init__.py index edd9dc9..28e60d9 100644 --- a/backends/irc/__init__.py +++ b/backends/irc/__init__.py @@ -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 -- 1.7.1