mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
constants: Remove unused constants.
We may re-add MaxReplyLength later as a variable config option, similar to mammon.
This commit is contained in:
parent
3c2fae666a
commit
09802f7181
@ -8,9 +8,7 @@ package irc
|
||||
import "fmt"
|
||||
|
||||
const (
|
||||
SEM_VER = "0.2.0-unreleased"
|
||||
CRLF = "\r\n"
|
||||
MAX_REPLY_LEN = 512 - len(CRLF)
|
||||
SEM_VER = "0.2.0-unreleased"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -32,7 +32,7 @@ type WSContainer struct {
|
||||
func (this WSContainer) Read(msg []byte) (int, error) {
|
||||
ty, bytes, err := this.ReadMessage()
|
||||
if ty == websocket.TextMessage {
|
||||
n := copy(msg, []byte(string(bytes)+CRLF+CRLF))
|
||||
n := copy(msg, []byte(string(bytes)+"\r\n\r\n"))
|
||||
return n, err
|
||||
}
|
||||
// Binary, and other kinds of messages, are thrown away.
|
||||
|
Loading…
Reference in New Issue
Block a user