From 07446c2595e8715ce86d18b0b0b732eb91d90280 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 25 Feb 2016 08:51:54 +0100 Subject: [PATCH] ParseLine: ignore empty lines (instead of crashing) --- client/line.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/line.go b/client/line.go index ad428e2..bfa473a 100644 --- a/client/line.go +++ b/client/line.go @@ -115,6 +115,10 @@ func (line *Line) Public() bool { func ParseLine(s string) *Line { line := &Line{Raw: s} + if s == "" { + return nil + } + if s[0] == '@' { var rawTags string line.Tags = make(map[string]string)