mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-08-22 00:24:38 -05:00
Merge pull request #51 from MikeIsAStar/handle-mkw-room-stall-packets
GPCM: Handle 'mkw_room_stall' messages
This commit is contained in:
@@ -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)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user