From 373d9118ac7ba52b281760a810641ff5e2918ae7 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Wed, 13 Jul 2011 03:21:40 -0600 Subject: [PATCH] Group isn't required for /user del --- TShockAPI/Commands.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index b04a777a..b062c24f 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -331,10 +331,7 @@ namespace TShockAPI args.Player.SendMessage("Note: Passwords are stored with SHA512 hashing. To reset a user's password, remove and re-add them."); return; } - - if (args.Parameters.Count > 2) - { - if (args.Parameters[0] == "add") + if (args.Parameters[0] == "add" && args.Parameters.Count > 2) { int returnval = 0; if (args.Parameters[1].Split(':').Length == 2) @@ -361,7 +358,7 @@ namespace TShockAPI return; } args.Player.SendMessage("Invalid syntax. Try /user help.", Color.Red); - } else if (args.Parameters[0] == "del") + }else if (args.Parameters[0] == "del" && args.Parameters.Count == 1) { if (args.Parameters[1].Contains(".")) { @@ -386,7 +383,6 @@ namespace TShockAPI } } } - } } #endregion