mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-03-21 17:44:58 -05:00
GPSP: Detailed log of player search
This commit is contained in:
parent
b691161788
commit
5786b10b2c
|
|
@ -25,7 +25,21 @@ func handleSearch(command common.GameSpyCommand) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
moduleName = "GPSP:" + strconv.FormatUint(profileId, 10)
|
moduleName = "GPSP:" + strconv.FormatUint(profileId, 10)
|
||||||
logging.Info(moduleName, "Search for", aurora.Cyan(profileId))
|
|
||||||
|
logInfo := ""
|
||||||
|
for _, field := range []string{
|
||||||
|
"nick", "uniquenick", "email", "firstname", "lastname", "icquin", "skip",
|
||||||
|
} {
|
||||||
|
if value, ok := command.OtherValues[field]; ok {
|
||||||
|
logInfo += " " + aurora.BrightCyan(field).String() + ": '" + aurora.Cyan(value).String() + "'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if logInfo == "" {
|
||||||
|
logging.Info(moduleName, "Search with no fields")
|
||||||
|
} else {
|
||||||
|
logging.Info(moduleName, "Search"+logInfo)
|
||||||
|
}
|
||||||
|
|
||||||
return common.CreateGameSpyMessage(common.GameSpyCommand{
|
return common.CreateGameSpyMessage(common.GameSpyCommand{
|
||||||
Command: "bsrdone",
|
Command: "bsrdone",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user