38f1ddb...178a853: v0.8.9.1, removed content folder

This commit is contained in:
Joonas Rikkonen
2019-03-18 19:46:58 +02:00
parent 38f1ddb6fe
commit 6c0679c297
1054 changed files with 151673 additions and 144931 deletions
@@ -9,6 +9,7 @@ namespace Barotrauma.Networking
{
public string Name;
public byte ID;
public ulong SteamID;
private float karma = 1.0f;
public float Karma
@@ -63,6 +64,8 @@ namespace Barotrauma.Networking
public float ChatSpamSpeed;
public float ChatSpamTimer;
public int ChatSpamCount;
public float KickAFKTimer;
public double MidRoundSyncTimeOut;
@@ -86,6 +89,8 @@ namespace Barotrauma.Networking
public float DeleteDisconnectedTimer;
public HashSet<string> GivenAchievements = new HashSet<string>();
public ClientPermissions Permissions = ClientPermissions.None;
public List<DebugConsole.Command> PermittedConsoleCommands
{
@@ -136,8 +141,8 @@ namespace Barotrauma.Networking
public static bool IsValidName(string name, GameServer server)
{
if (name.Contains("\n") || name.Contains("\r")) return false;
if (name.Any(c => c == ';' || c == ',' || c == '<' || c == '/')) return false;
char[] disallowedChars = new char[] { ';', ',', '<', '>', '/', '\\', '[', ']', '"', '?' };
if (name.Any(c => disallowedChars.Contains(c))) return false;
foreach (char character in name)
{