Browse Source

corrected servername bug

pull/509/head
Daniel Gibbs 10 years ago
parent
commit
ee14545191
  1. 2
      functions/fn_details_config

2
functions/fn_details_config

@ -386,7 +386,7 @@ elif [ "${engine}" == "teeworlds" ]; then
# server name
if [ -f "${servercfgfullpath}" ]; then
servername=$(grep "sv_name" "${servercfgfullpath}" | sed 's/^.*value="//' | cut -f1 -d"\"")
servername=$(grep "sv_name" "${servercfgfullpath}" | sed 's/sv_name //g' | sed 's/"//g')
if [ ! -n "${servername}" ]; then
servername="unnamed server"
fi

Loading…
Cancel
Save