From b0a678710cd0f352316253f332750893b1ebb799 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Tue, 12 Jul 2011 01:41:52 -0600 Subject: [PATCH] Added some outputs in the event that auth eats your command. --- TShockAPI/Commands.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 948ccadf..a7d8943a 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1522,6 +1522,8 @@ namespace TShockAPI { if (TShock.AuthToken == 0) { + args.Player.SendMessage("Auth is disabled. This incident has been logged.", Color.Red); + Log.Warn(args.Player.IP + " attempted to use /auth even though it's disabled."); return; } int givenCode = Convert.ToInt32(args.Parameters[0]); @@ -1547,6 +1549,9 @@ namespace TShockAPI args.Player.SendMessage("If you understand, please /login now, and type /auth-verify"); return; } + + args.Player.SendMessage("Incorrect auth code. This incident has been logged."); + Log.Warn(args.Player.IP + " attempted to use an incorrect auth code."); } private static void AuthVerify(CommandArgs args)