14 lines
268 B
Go
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)
|
|
}
|