mirror of https://github.com/fluffle/goirc
ParseLine: ignore empty lines (instead of crashing)
This commit is contained in:
parent
8be75dd9d4
commit
07446c2595
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue