Przeglądaj źródła

Fixed teeworlds server password

Daniel Gibbs 10 lat temu
rodzic
commit
e8736fcb39
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      functions/fn_details_config

+ 1 - 1
functions/fn_details_config

@@ -402,7 +402,7 @@ elif [ "${engine}" == "teeworlds" ]; then
 
 	# server password
 	if [ -f "${servercfgfullpath}" ]; then
-		serverpassword=$(grep "password " "${servercfgfullpath}" | sed 's/password //g' | tr -d '=\"; ')
+		serverpassword=$(grep "password " "${servercfgfullpath}" | awk '!/sv_rcon_password/'| sed 's/password //g' | tr -d '=\"; ')
 		if [ ! -n "${rconpassword}" ]; then
 			serverpassword="NOT SET"
 		fi