From cd4503be3119366a401a535f72ddee0e5b7f45e0 Mon Sep 17 00:00:00 2001 From: Jeremy Latt Date: Sun, 16 Feb 2014 22:24:49 -0800 Subject: [PATCH] allow blank lines from the client --- irc/socket.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/irc/socket.go b/irc/socket.go index 03f09a03..039c2792 100644 --- a/irc/socket.go +++ b/irc/socket.go @@ -60,6 +60,9 @@ func (socket *Socket) readLines() { } line = strings.TrimSpace(line) + if len(line) == 0 { + continue + } if DEBUG_NET { log.Printf("%s → %s", socket, line) }