From 16960c7d2c04397777b96bc3fd843a941834871a Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sun, 12 Apr 2015 21:46:15 -0600 Subject: [PATCH] Require 3 parameters to change a password Fixes #899 --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 6ef9d615..cbb4a622 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1030,7 +1030,7 @@ namespace TShockAPI } // Password changing requires a username, and a new password to set - else if (subcmd == "password") + else if (subcmd == "password" && args.Parameters.Count == 3) { var user = new User(); user.Name = args.Parameters[1];