From 4151c831d6c165f5976159e8ad4a4de822ac8ad0 Mon Sep 17 00:00:00 2001 From: Simon311 Date: Mon, 7 Oct 2013 10:40:56 +0400 Subject: [PATCH] Fixing improper / handling This might be as old as TShock itself. Also, you might as well do & args.Text != "/" instead of Length, it is just a matter of taste. --- TShockAPI/TShock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index e98168cb..39eb77b2 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -946,7 +946,7 @@ namespace TShockAPI return; }*/ - if (args.Text.StartsWith("/")) + if (args.Text.StartsWith("/") & args.Text.Length > 1) { try {