mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-21 20:50:40 -05:00
fixed up IW5 parser with new event system
changed login alias to li (duplicate) fixed crashing bug in generic repo fixed anonymous name in access to web console
This commit is contained in:
@ -140,7 +140,7 @@ namespace Application.RconParsers
|
||||
|
||||
Int32.TryParse(playerInfo[2], out Ping);
|
||||
string name = Encoding.UTF8.GetString(Encoding.Convert(Utilities.EncodingType, Encoding.UTF8, Utilities.EncodingType.GetBytes(responseLine.Substring(23, 15).StripColors().Trim())));
|
||||
long networkId = playerInfo[4].ConvertLong();
|
||||
long networkId = 0;//playerInfo[4].ConvertLong();
|
||||
int.TryParse(playerInfo[0], out clientId);
|
||||
var regex = Regex.Match(responseLine, @"\d+\.\d+\.\d+.\d+\:\d{1,5}");
|
||||
int ipAddress = regex.Value.Split(':')[0].ConvertToIP();
|
||||
@ -155,7 +155,7 @@ namespace Application.RconParsers
|
||||
IPAddress = ipAddress,
|
||||
Ping = Ping,
|
||||
Score = score,
|
||||
IsBot = networkId == 0
|
||||
IsBot = false
|
||||
};
|
||||
|
||||
StatusPlayers.Add(p);
|
||||
|
Reference in New Issue
Block a user