[iortcw] 07/95: All: Don't have clients use private slots when sv_privatePassword is unset

Simon McVittie smcv at debian.org
Fri Sep 8 10:41:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to tag 1.51
in repository iortcw.

commit 7497dfe63cf8cd83d87720cd8a9702738da3e0be
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Thu Dec 8 11:40:21 2016 -0500

    All: Don't have clients use private slots when sv_privatePassword is unset
---
 MP/code/server/sv_client.c | 2 +-
 SP/code/server/sv_client.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/code/server/sv_client.c b/MP/code/server/sv_client.c
index 6d03c24..ad05d5a 100644
--- a/MP/code/server/sv_client.c
+++ b/MP/code/server/sv_client.c
@@ -513,7 +513,7 @@ void SV_DirectConnect( netadr_t from ) {
 
 	// check for privateClient password
 	password = Info_ValueForKey( userinfo, "password" );
-	if ( !strcmp( password, sv_privatePassword->string ) ) {
+	if ( *password && !strcmp( password, sv_privatePassword->string ) ) {
 		startIndex = 0;
 	} else {
 		// skip past the reserved slots
diff --git a/SP/code/server/sv_client.c b/SP/code/server/sv_client.c
index 5c73f9f..2be558e 100644
--- a/SP/code/server/sv_client.c
+++ b/SP/code/server/sv_client.c
@@ -495,7 +495,7 @@ void SV_DirectConnect( netadr_t from ) {
 
 	// check for privateClient password
 	password = Info_ValueForKey( userinfo, "password" );
-	if ( !strcmp( password, sv_privatePassword->string ) ) {
+	if ( *password && !strcmp( password, sv_privatePassword->string ) ) {
 		startIndex = 0;
 	} else {
 		// skip past the reserved slots

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list