From fa8bf82e35fa7eafd7ae60be59e0562edd878f55 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Wed, 13 Jul 2011 12:41:48 -0600 Subject: [PATCH] Changed File.Delete to use Path.Combine --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 99cb7bbc..41b11c18 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1601,7 +1601,7 @@ namespace TShockAPI args.Player.SendMessage("You can always use the /user command to manage players. Don't just delete the auth.lck."); args.Player.SendMessage("Thankyou for using TShock! http://tshock.co/ & http://github.com/TShock/TShock"); FileTools.CreateFile(Path.Combine(TShock.SavePath, "auth.lck")); - File.Delete("./tshock/authcode.txt"); + File.Delete(Path.Combine(TShock.SavePath, "authcode.txt")); TShock.AuthToken = 0; }