1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

add check to determine whether to include color codes when checking name length

This commit is contained in:
RaidMax
2021-09-18 18:10:47 -05:00
parent 1e19966ff2
commit 68d4cc5bfd
2 changed files with 4 additions and 1 deletions

View File

@ -186,6 +186,8 @@ namespace SharedLibraryCore
/// <returns></returns>
public static bool IsZombieServer(this Server server) => server.GameName == Game.T6 && _zmGameTypes.Contains(server.Gametype.ToLower());
public static bool IsCodGame(this Server server) => server.RconParser?.RConEngine == "COD";
/// <summary>
/// Get the IW Engine color code corresponding to an admin level
/// </summary>