mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
allow blank lines from the client
This commit is contained in:
parent
a894e3f37f
commit
cd4503be31
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue