mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-26 13:59:44 +01:00
allow blank lines from the client
This commit is contained in:
parent
a894e3f37f
commit
cd4503be31
@ -60,6 +60,9 @@ func (socket *Socket) readLines() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
line = strings.TrimSpace(line)
|
line = strings.TrimSpace(line)
|
||||||
|
if len(line) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if DEBUG_NET {
|
if DEBUG_NET {
|
||||||
log.Printf("%s → %s", socket, line)
|
log.Printf("%s → %s", socket, line)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user