aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmma Miler <emma.pi@protonmail.com>2022-10-28 00:30:50 +0200
committerGitHub <noreply@github.com>2022-10-27 18:30:50 -0400
commit4c99e6f02d7063ccc2e6c09531abd48c5bf9c91e (patch)
tree1d5922a4678b3ea114a6cf96def6574815b392aa
parentf233b4b75b974ade00aa94436bd39c9b3f9321bd (diff)
downloadNorthstarLauncher-4c99e6f02d7063ccc2e6c09531abd48c5bf9c91e.tar.gz
NorthstarLauncher-4c99e6f02d7063ccc2e6c09531abd48c5bf9c91e.zip
Update serverauthentication.cpp (#307)
-rw-r--r--NorthstarDLL/serverauthentication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDLL/serverauthentication.cpp b/NorthstarDLL/serverauthentication.cpp
index 98054dd7..39136704 100644
--- a/NorthstarDLL/serverauthentication.cpp
+++ b/NorthstarDLL/serverauthentication.cpp
@@ -124,7 +124,7 @@ void ServerAuthenticationManager::VerifyPlayerName(R2::CBaseClient* player, char
bool nameAccepted = (!*authData.username || !strcmp(name, authData.username));
- if (!nameAccepted && g_pMasterServerManager->m_bRequireClientAuth && !CVar_ns_auth_allow_insecure->GetInt())
+ if (!nameAccepted && !CVar_ns_auth_allow_insecure->GetInt())
{
// limit name length to 64 characters just in case something changes, this technically shouldn't be needed given the master
// server gets usernames from origin but we have it just in case