diff --git a/functions/fn_details_config b/functions/fn_details_config index 307de19d7..7ba6d52c6 100644 --- a/functions/fn_details_config +++ b/functions/fn_details_config @@ -15,6 +15,9 @@ if [ -e "${servercfgfullpath}" ]; then elif [ "${engine}" == "projectzomboid" ]; then servername=$(grep -s PublicName= "${servercfgfullpath}"|sed 's/PublicName=//g'|tr -d '=\";'|sed 's/,//g') + if [ -z "${servername}" ]; then + telnetpass="\e[0;31mno server name set\e[0m" + fi port=$(grep -s DefaultPort= "${servercfgfullpath}"|sed 's/DefaultPort=//g'|tr -cd [:digit:]) elif [ "${engine}" == "realvirtuality" ]; then