Restrict character names to alphanumerics via cvar (#4947)

* Restrict character names to ASCII via cvar

* Alphanumerics is better

* name randomization

Co-authored-by: ike709 <ike709@github.com>
This commit is contained in:
ike709
2021-10-21 05:52:26 -05:00
committed by GitHub
parent 94afc05d6c
commit 9f929b690b
2 changed files with 34 additions and 5 deletions

View File

@@ -461,5 +461,15 @@ namespace Content.Shared.CCVar
/// </summary>
public static readonly CVarDef<float> AfkTime =
CVarDef.Create("afk.time", 60f, CVar.SERVERONLY);
/*
* IC
*/
/// <summary>
/// Restricts IC character names to alphanumeric chars.
/// </summary>
public static readonly CVarDef<bool> RestrictedNames =
CVarDef.Create("ic.restricted_names", true, CVar.SERVER | CVar.REPLICATED);
}
}