mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 11:59:40 +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)
|
||||
if len(line) == 0 {
|
||||
continue
|
||||
}
|
||||
if DEBUG_NET {
|
||||
log.Printf("%s → %s", socket, line)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user