diff --git a/plugins/matchmaking.go b/plugins/matchmaking.go index ad8d726..1b47222 100644 --- a/plugins/matchmaking.go +++ b/plugins/matchmaking.go @@ -29,11 +29,12 @@ func MatchmakerMatched( propsA := entries[0].GetProperties() propsB := entries[1].GetProperties() + validModes := map[string]bool{"classic": true, "blitz": true} modeA, okA := propsA["mode"].(string) modeB, okB := propsB["mode"].(string) - if !okA || !okB { + if !okA || !okB || !validModes[modeA] || !validModes[modeB] { logger.Warn("MatchmakerMatched missing mode property — ignoring") return "", nil }