From 796a3c5f60c3c4be081b1cd21b82e1b0bbf89697 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 30 Oct 2015 00:43:52 +0000 Subject: [PATCH] More bug fixes --- functions/fn_details_config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/fn_details_config b/functions/fn_details_config index fc572fe3e..f8727f1f5 100644 --- a/functions/fn_details_config +++ b/functions/fn_details_config @@ -192,7 +192,7 @@ elif [ "${engine}" == "realvirtuality" ]; then # server password if [ -f "${servercfgfullpath}" ]; then serverpassword=$(grep "password =" "${servercfgfullpath}" | grep -v "//" | sed -e 's/\password//g' | tr -d '=\"; ') - if [ ! -n "${adminpassword}" ]; then + if [ ! -n "${serverpassword}" ]; then serverpassword="NOT SET" fi else @@ -403,7 +403,7 @@ elif [ "${engine}" == "teeworlds" ]; then # server password if [ -f "${servercfgfullpath}" ]; then serverpassword=$(grep "password " "${servercfgfullpath}" | awk '!/sv_rcon_password/'| sed 's/password //g' | tr -d '=\"; ') - if [ ! -n "${rconpassword}" ]; then + if [ ! -n "${serverpassword}" ]; then serverpassword="NOT SET" fi else @@ -531,7 +531,7 @@ elif [ "${engine}" == "unity3d" ]; then # telnet password if [ -f "${servercfgfullpath}" ]; then telnetpass=$(grep "TelnetEnabled" "${servercfgfullpath}" | sed 's/^.*value="//' | cut -f1 -d"\"") - if [ ! -n "${telnetenabled}" ]; then + if [ ! -n "${telnetpass}" ]; then telnetpass="NOT SET" fi else