Changeset 402 for binary-improvements2/WebServer/src/Commands
- Timestamp:
- Jan 27, 2023, 7:28:00 PM (22 months ago)
- Location:
- binary-improvements2/WebServer/src/Commands
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/Commands/EnableOpenIDDebug.cs
r391 r402 15 15 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) { 16 16 if (_params.Count != 1) { 17 SdtdConsole.Instance.Output ( "Current state: " + OpenID.debugOpenId);17 SdtdConsole.Instance.Output ($"Current state: {OpenID.debugOpenId}"); 18 18 return; 19 19 } 20 20 21 21 OpenID.debugOpenId = _params [0].Equals ("1"); 22 SdtdConsole.Instance.Output ( "Set OpenID debugging to " + _params [0].Equals ("1"));22 SdtdConsole.Instance.Output ($"Set OpenID debugging to {_params [0].Equals ("1")}"); 23 23 } 24 24 } -
binary-improvements2/WebServer/src/Commands/WebTokens.cs
r391 r402 33 33 ExecuteList (); 34 34 } else { 35 SdtdConsole.Instance.Output ( "Invalid sub command \"" + _params [0] + "\".");35 SdtdConsole.Instance.Output ($"Invalid sub command \"{_params [0]}\"."); 36 36 } 37 37 } else { … … 42 42 private void ExecuteAdd (List<string> _params) { 43 43 if (_params.Count != 4) { 44 SdtdConsole.Instance.Output ( "Wrong number of arguments, expected 4, found " + _params.Count + ".");44 SdtdConsole.Instance.Output ($"Wrong number of arguments, expected 4, found {_params.Count}."); 45 45 return; 46 46 } … … 79 79 private void ExecuteRemove (List<string> _params) { 80 80 if (_params.Count != 2) { 81 SdtdConsole.Instance.Output ( "Wrong number of arguments, expected 2, found " + _params.Count + ".");81 SdtdConsole.Instance.Output ($"Wrong number of arguments, expected 2, found {_params.Count}."); 82 82 return; 83 83 }
Note:
See TracChangeset
for help on using the changeset viewer.