From 8980a2155a7f3c0cd1bef5e7949d30495b0ad8ad Mon Sep 17 00:00:00 2001 From: Zack Piispanen Date: Sun, 22 Sep 2013 22:56:52 -0400 Subject: [PATCH] Removed redundant code. --- TShockAPI/GetDataHandlers.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 906e56ff..0b128ba9 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1306,17 +1306,6 @@ namespace TShockAPI TShock.Utils.ForceKick(args.Player, "Empty Name.", true); return true; } - var ban = TShock.Bans.GetBanByName(name); - if (ban != null) - { - if (!TShock.Utils.HasBanExpired(ban, true)) - { - DateTime exp; - string duration = DateTime.TryParse(ban.Expiration, out exp) ? String.Format("until {0}", exp.ToString("G")) : "forever"; - TShock.Utils.ForceKick(args.Player, string.Format("You are banned {0}: {1}", duration, ban.Reason), true, false); - return true; - } - } if (args.Player.ReceivedInfo) { return true;