bom/server/login.go
2024-01-15 17:08:26 +01:00

14 lines
268 B
Go

package main
import (
"fmt"
"server/core"
"server/packet"
)
// login checks the account credentials and gives a network peer access to an account.
func login(data []byte, client *core.Client) {
fmt.Println("2 - login!")
server.Send(packet.LOGIN, nil, client)
}