From f8e5e1e08168463d91146c6a1540bc739aa30d37 Mon Sep 17 00:00:00 2001 From: k0rd Date: Wed, 9 Oct 2013 23:55:46 -0400 Subject: [PATCH] blank UUID ignore for login, forgot to add this file --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 1866578e..58ff882e 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -710,7 +710,7 @@ namespace TShockAPI { args.Player.SendErrorMessage("A user by that name does not exist."); } - else if (user.Password.ToUpper() == encrPass.ToUpper() || (user.UUID == args.Player.UUID && !TShock.Config.DisableUUIDLogin)) + else if (user.Password.ToUpper() == encrPass.ToUpper() || (user.UUID == args.Player.UUID && !TShock.Config.DisableUUIDLogin && !String.IsNullOrWhiteSpace(args.Player.UUID))) { args.Player.PlayerData = TShock.CharacterDB.GetPlayerData(args.Player, TShock.Users.GetUserID(user.Name));