From 4c99e6f02d7063ccc2e6c09531abd48c5bf9c91e Mon Sep 17 00:00:00 2001 From: Emma Miler Date: Fri, 28 Oct 2022 00:30:50 +0200 Subject: Update serverauthentication.cpp (#307) --- NorthstarDLL/serverauthentication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3