From ec2a5425649463152c8743c9c6900bd0b5ba53f3 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Fri, 1 Dec 2017 23:27:51 -0700 Subject: [PATCH] Remove silly string join since snoons is right > String.Join(" ", str1, str2) is far less clear than str1 + " " + str2 --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 67b0643c..26ed7fc5 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1384,7 +1384,7 @@ namespace TShockAPI string pattern = @"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"; Regex r = new Regex(pattern, RegexOptions.IgnoreCase); if (r.IsMatch(args.Parameters[1])) { - targetGeneralizedName = String.Join(" ", "IP:", args.Parameters[1]); + targetGeneralizedName = "IP: " + args.Parameters[1]; success = TShock.Bans.AddBan(args.Parameters[1], "", "", banReason, false, args.Player.User.Name, banLengthInSeconds == 0 ? "" : banLengthInSeconds.ToString()); if (success && offlineUser != null)