diff --git a/decode.cs b/decode.cs index a2ad357..4a8afeb 100644 --- a/decode.cs +++ b/decode.cs @@ -14,24 +14,21 @@ namespace Pithos text = text.Replace("$user", Environment.UserName); return text; } - - public void command(string text) { + public bool command(string text) { string[] args = text.Substring(1).Split(' ');//splits string and removed character if (args[0] == "lock") { //locks the program Program.MW.display("Locking Software...", Color.Red); Program.MW.Hide(); Program.UL.Show(); - return; + return true; } else if (args[0] == "hash") { //hash things - for (int i = 1; i < args.Length; i++) { - Program.MW.display("String: " + args[i] + " Hash: " + tools.hash(args[0]), Color.Green); - } - return; + for (int i = 1; i < args.Length; i++) { Program.MW.display("String: " + args[i] + " Hash: " + tools.hash(args[0]), Color.Green); } + return true; } - - else if (args[0] == "shutdown") { Process.Start("shutdown /s /t 0"); } //shutdown computer + else if (args[0] == "shutdown") { Process.Start("shutdown /s /t 0"); return true; } //shutdown computer + return false; } } }