1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Add flag icon on client profile

This commit is contained in:
RaidMax
2019-08-04 17:06:07 -05:00
parent 8bd67a1629
commit 38313ab184
14 changed files with 143 additions and 30 deletions

View File

@ -581,7 +581,7 @@ namespace SharedLibraryCore.Services
ClientId = _client.ClientId,
Name = _client.CurrentAlias.Name,
IPAddress = _client.CurrentAlias.IPAddress.ConvertIPtoString(),
LastConnection = _client.LastConnection
LastConnection = _client.FirstConnection
})
.OrderByDescending(_client => _client.ClientId)
.Take(10);

View File

@ -154,7 +154,7 @@ namespace SharedLibraryCore
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
public static string FixIW4ForwardSlash(this string str) => Regex.Match(str, @"(^\/+.*$)|(^.*\/+$)").Value.Replace("/", " /");
public static string FixIW4ForwardSlash(this string str) => str.Replace("/", " /");
/// <summary>
/// Get the IW Engine color code corresponding to an admin level