[ioquake3] 08/25: Don't have clients use private slots when sv_privatePassword is unset

Simon McVittie smcv at debian.org
Sun Mar 12 18:23:25 UTC 2017


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

smcv pushed a commit to branch debian/master
in repository ioquake3.

commit c68e4714305c6616ad852d28acfe522aca66c92d
Author: Zack Middleton <zack at cloemail.com>
Date:   Sun May 15 23:47:01 2016 -0500

    Don't have clients use private slots when sv_privatePassword is unset
---
 code/server/sv_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/code/server/sv_client.c b/code/server/sv_client.c
index d45c49d..ad759ef 100644
--- a/code/server/sv_client.c
+++ b/code/server/sv_client.c
@@ -488,7 +488,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/ioquake3.git



More information about the Pkg-games-commits mailing list