mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-03-21 17:44:58 -05:00
16 lines
336 B
Go
16 lines
336 B
Go
package gamestats
|
|
|
|
import (
|
|
"wwfc/common"
|
|
"wwfc/gpcm"
|
|
"wwfc/logging"
|
|
)
|
|
|
|
func (g *GameStatsSession) replyError(err gpcm.GPError) {
|
|
logging.Error(g.ModuleName, "Reply error:", err.ErrorString)
|
|
common.SendPacket(ServerName, g.ConnIndex, []byte(err.GetMessage()))
|
|
if err.Fatal {
|
|
common.CloseConnection(ServerName, g.ConnIndex)
|
|
}
|
|
}
|