Require 3 parameters to change a password

Fixes #899
This commit is contained in:
Lucas Nicodemus 2015-04-12 21:46:15 -06:00
parent cef253ce20
commit 16960c7d2c

View file

@ -1030,7 +1030,7 @@ namespace TShockAPI
} }
// Password changing requires a username, and a new password to set // 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(); var user = new User();
user.Name = args.Parameters[1]; user.Name = args.Parameters[1];