瀏覽代碼

Fixed teeworlds server password

Daniel Gibbs 10 年之前
父節點
當前提交
e8736fcb39
共有 1 個文件被更改,包括 1 次插入1 次删除
  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