Validate lobby option values.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user