Ver Fonte

fix(details): show reserved slots and the Humanitz admin password default (#5188)

Show Squad 44 reserved slots using the correct variable and apply the Humanitz admin password fallback to adminpassword. Preserve password masking in public details output.

Fixes #5187
BorzakA há 1 dia atrás
pai
commit
b3d24bec15
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      lgsm/modules/info_game.sh
  2. 1 1
      lgsm/modules/info_messages.sh

+ 1 - 1
lgsm/modules/info_game.sh

@@ -1424,7 +1424,7 @@ fn_info_game_hz() {
 		fn_info_game_ini "adminpassword" "AdminPassword"
 		fn_info_game_ini "servername" "ServerName"
 	fi
-	adminpass="${adminpassword:-"NOT SET"}"
+	adminpassword="${adminpassword:-"NOT SET"}"
 	port="${port:-"0"}"
 	queryport="${queryport:-"0"}"
 	rconport="$((port + 2))"

+ 1 - 1
lgsm/modules/info_messages.sh

@@ -401,7 +401,7 @@ fn_info_messages_gameserver() {
 		fi
 
 		# Reserved Slots
-		if [ -n "${statspassword}" ]; then
+		if [ -n "${reservedslots}" ]; then
 			echo -e "${lightblue}Reserved Slots:\t${default}${reservedslots}"
 		fi