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:
parent
05ff0be3f5
commit
4151c831d6
1 changed files with 1 additions and 1 deletions
|
|
@ -946,7 +946,7 @@ namespace TShockAPI
|
|||
return;
|
||||
}*/
|
||||
|
||||
if (args.Text.StartsWith("/"))
|
||||
if (args.Text.StartsWith("/") & args.Text.Length > 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue