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

change penalty expiration datetime to null for perm bans

add tempban max time
allow searching for GUID
stats returns ranking as well
fix for promotion/demotion text
This commit is contained in:
RaidMax
2018-10-15 19:51:04 -05:00
parent 4feb47dd00
commit d84de353ff
21 changed files with 1050 additions and 216 deletions

View File

@ -248,14 +248,14 @@ namespace SharedLibraryCore
if (!string.IsNullOrEmpty(bot))
// should set their GUID to the negation of their 1 based index (-1 - -18)
return -(Convert.ToInt64(bot.Substring(3)) + 1);
return 0;
return long.MinValue;
}
public static int ConvertToIP(this string str)
{
System.Net.IPAddress.TryParse(str, out System.Net.IPAddress ip);
return ip == null ? 0 : BitConverter.ToInt32(ip.GetAddressBytes(), 0);
return ip == null ? int.MaxValue : BitConverter.ToInt32(ip.GetAddressBytes(), 0);
}
public static string ConvertIPtoString(this int ip)