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.
This commit is contained in:
Simon311 2013-10-07 10:40:56 +04:00
parent 05ff0be3f5
commit 4151c831d6

View file

@ -946,7 +946,7 @@ namespace TShockAPI
return;
}*/
if (args.Text.StartsWith("/"))
if (args.Text.StartsWith("/") & args.Text.Length > 1)
{
try
{