mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-16 17:39:44 -07:00
don't trim line endings in IRCStreamConn
Doesn't help if the line ends with regular \n only, and the parser has to account for \r and \n anyway
This commit is contained in:
@@ -76,7 +76,6 @@ func (cc *IRCStreamConn) ReadLine() (line []byte, err error) {
|
||||
if isPrefix {
|
||||
return nil, errReadQ
|
||||
}
|
||||
line = bytes.TrimSuffix(line, crlf)
|
||||
if globalUtf8EnforcementSetting && !utf8.Valid(line) {
|
||||
err = errInvalidUtf8
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user