From e57ab38e4b4d7d1e045417c7148afe7a9379e239 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Fri, 1 Jul 2011 03:08:10 -0600 Subject: [PATCH] -1 Maximum login attempts to disable. --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 6fe33846..e4b4d5a9 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -290,7 +290,7 @@ namespace TShockAPI public static void AttemptLogin(CommandArgs args) { - if (args.Player.LoginAttempts > ConfigurationManager.MaximumLoginAttempts) + if (args.Player.LoginAttempts > ConfigurationManager.MaximumLoginAttempts && (ConfigurationManager.MaximumLoginAttempts != -1)) { Log.Warn(args.Player.IP + "(" + args.Player.Name + ") had " + ConfigurationManager.MaximumLoginAttempts + " or more invalid login attempts and was kicked automatically."); Tools.Kick(args.Player, "Too many invalid login attempts.");