Validate lobby option values.

This commit is contained in:
Paul Chote
2023-11-16 22:20:54 +00:00
committed by Gustas
parent 2faae285db
commit 89e1d71aec
2 changed files with 7 additions and 1 deletions

View File

@@ -729,6 +729,12 @@ namespace OpenRA.Mods.Common.Server
if (oo.Value == split[1])
return true;
if (!option.Values.ContainsKey(split[1]))
{
server.SendLocalizedMessageTo(conn, InvalidConfigurationCommand);
return true;
}
oo.Value = oo.PreferredValue = split[1];
server.SyncLobbyGlobalSettings();