From a9b558e75d13ade3893c29780a51a06cfead45b3 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Thu, 21 Jul 2011 15:27:15 -0600 Subject: [PATCH] Added some precautions against duplicates. --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index caba5766..d2a2cd0d 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -375,7 +375,7 @@ namespace TShockAPI if (args.Parameters.Count == 2) { var user = new User(); - user.Name = args.Parameters[0]; + user.Name = args.Parameters[0].ToLower(); user.Password = args.Parameters[1]; user.Group = "default"; // FIXME -- we should get this from the DB.