some revert things, because limited scope

master
Riley 2022-05-10 18:33:00 +02:00
parent 4e602d1c73
commit 308b7ae083
1 changed files with 2 additions and 3 deletions

View File

@ -33,7 +33,7 @@ func (cc *ClientConn) process(pkt mt.Pkt) {
}
cc.setState(csInit)
/*if cmd.SerializeVer <= latestSerializeVer {
if cmd.SerializeVer <= latestSerializeVer {
cc.Log("<-", "invalid serializeVer", cmd.SerializeVer)
ack, _ := cc.SendCmd(&mt.ToCltKick{Reason: mt.UnsupportedVer})
@ -57,7 +57,7 @@ func (cc *ClientConn) process(pkt mt.Pkt) {
}
return
}*/
}
if len(cmd.PlayerName) == 0 || len(cmd.PlayerName) > maxPlayerNameLen {
cc.Log("<-", "invalid player name length")
@ -449,7 +449,6 @@ func (cc *ClientConn) process(pkt mt.Pkt) {
done := make(chan struct{})
go func(done chan<- struct{}) {
result, isCmd := onChatMsg(cc, cmd)
if !isCmd {
forward(pkt)