Merge pull request #51 from MikeIsAStar/handle-mkw-room-stall-packets

GPCM: Handle 'mkw_room_stall' messages
This commit is contained in:
Palapeli 2024-06-27 12:47:18 -04:00 committed by GitHub
commit ed9aba05f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,20 @@ func (g *GameSpySession) handleWWFCReport(command common.GameSpyCommand) {
}
logging.Warn(g.ModuleName, "Malicious packet from", aurora.BrightCyan(strconv.FormatUint(profileId, 10)))
case "mkw_room_stall":
if g.GameName != "mariokartwii" {
logging.Warn(g.ModuleName, "Ignoring mkw_room_stall from wrong game")
continue
}
profileId, err := strconv.ParseUint(value, 10, 32)
if err != nil {
logging.Error(g.ModuleName, "Error decoding mkw_room_stall:", err.Error())
continue
}
logging.Warn(g.ModuleName, "Room stall caused by", aurora.BrightCyan(strconv.FormatUint(profileId, 10)))
}
}
}