Use utils + formatting

This commit is contained in:
Vortrex
2022-04-12 06:30:30 -05:00
parent 5f3484e3e0
commit 7aacf876da
5 changed files with 8 additions and 8 deletions

View File

@@ -937,13 +937,13 @@ function checkRegistration(client, password, confirmPassword = "", emailAddress
} else {
messagePlayerError(client, "Password doesn't meet requirements!");
}
return false
return false;
}
if(doesServerHaveGUIEnabled() && doesPlayerHaveGUIEnabled(client)) {
if(!isValidEmailAddress(emailAddress)) {
showPlayerRegistrationFailedGUI(client, getLocaleString(client, "RegistrationFailedInvalidEmail"));
return false
return false;
}
}
@@ -1104,7 +1104,7 @@ function savePlayerToDatabase(client) {
return false;
}
if(!getPlayerData(client).loggedIn) {
if(!isPlayerLoggedIn(client)) {
return false;
}