- Timestamp:
- Sep 4, 2018, 2:33:52 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/AllocsCommands/Commands/ListKnownPlayers.cs
r325 r326 35 35 36 36 if (_params.Count == 1) { 37 long steamid = -1;38 if (_params [0]. ToLower ().Equals("-online")) {37 long steamid; 38 if (_params [0].EqualsCaseInsensitive ("-online")) { 39 39 onlineOnly = true; 40 } else if (_params [0]. ToLower ().Equals("-notbanned")) {40 } else if (_params [0].EqualsCaseInsensitive ("-notbanned")) { 41 41 notBannedOnly = true; 42 42 } else if (_params [0].Length == 17 && long.TryParse (_params [0], out steamid)) { 43 43 isSteamId = true; 44 44 } else { 45 nameFilter = _params [0] .ToLower ();45 nameFilter = _params [0]; 46 46 } 47 47 } … … 53 53 SdtdConsole.Instance.Output (string.Format ( 54 54 "{0}. {1}, id={2}, steamid={3}, online={4}, ip={5}, playtime={6} m, seen={7}", 55 0, p.Name, p.EntityID, nameFilter, p.IsOnline, p.IP,55 0, p.Name, p.EntityID, _params [0], p.IsOnline, p.IP, 56 56 p.TotalPlayTime / 60, 57 57 p.LastOnline.ToString ("yyyy-MM-dd HH:mm")) 58 58 ); 59 59 } else { 60 SdtdConsole.Instance.Output (string.Format ("SteamID {0} unknown!", nameFilter));60 SdtdConsole.Instance.Output (string.Format ("SteamID {0} unknown!", _params [0])); 61 61 } 62 62 } else { … … 68 68 (!onlineOnly || p.IsOnline) 69 69 && (!notBannedOnly || !admTools.IsBanned (sid)) 70 && (nameFilter.Length == 0 || p.Name. ToLower ().Contains(nameFilter))70 && (nameFilter.Length == 0 || p.Name.ContainsCaseInsensitive (nameFilter)) 71 71 ) { 72 72 SdtdConsole.Instance.Output (string.Format (
Note:
See TracChangeset
for help on using the changeset viewer.