aboutsummaryrefslogtreecommitdiff
path: root/process.go
diff options
context:
space:
mode:
authorRiley <riley@e926.de>2022-05-10 18:33:00 +0200
committerRiley <riley@e926.de>2022-05-10 18:33:00 +0200
commit308b7ae083264c2d3a6411335f8e60921173c370 (patch)
tree9b574e63e49089ce019e7fb9f7d95ee39a25542e /process.go
parent4e602d1c73d738e3e7f3071a265b6bcf408342e1 (diff)
some revert things, because limited scope
Diffstat (limited to 'process.go')
-rw-r--r--process.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/process.go b/process.go
index 7c5b71e..b576143 100644
--- a/process.go
+++ b/process.go
@@ -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)