diff --git a/functions/info_config.sh b/functions/info_config.sh index 64467503a..884cdbe57 100644 --- a/functions/info_config.sh +++ b/functions/info_config.sh @@ -168,6 +168,16 @@ elif [ "${engine}" == "idtech3" ]; then servername="\e[0;31mUNAVAILABLE\e[0m" fi + # server password + if [ -f "${servercfgfullpath}" ]; then + serverpassword=$(grep "set g_password" "${servercfgfullpath}" | grep -v "//" | sed -e 's/set g_password//g' | tr -d '=\"; ') + if [ ! -n "${serverpassword}" ]; then + serverpassword="NOT SET" + fi + else + serverpassword="\e[0;31mUNAVAILABLE\e[0m" + fi + # rcon password rconpassword="${rconpassword}" if [ -f "${servercfgfullpath}" ]; then