Browse Source

Removed slots from source as shouldnt be there

pull/475/head
Daniel Gibbs 10 years ago
parent
commit
42719ea70d
  1. 12
      functions/fn_details_config

12
functions/fn_details_config

@ -326,16 +326,6 @@ elif [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
rcon="\e[0;31mUNAVAILABLE\e[0m" rcon="\e[0;31mUNAVAILABLE\e[0m"
fi fi
# slots
if [ -f "${servercfgfullpath}" ]; then
slots=$(grep "gam_ctMaxPlayers" "${servercfgfullpath}" | grep -v "#" | tr -cd "[:digit:]")
if [ ! -n "${slots}" ]; then
slots="NOT SET"
fi
else
slots="\e[0;31mUNAVAILABLE\e[0m"
fi
elif [ "${engine}" == "spark" ]; then elif [ "${engine}" == "spark" ]; then
# query port # query port
@ -383,7 +373,7 @@ elif [ "${gamename}" == "Teamspeak 3" ]; then
queryport="10011" queryport="10011"
fi fi
# fileport port # file port
if [ -f "${servercfgfullpath}" ]; then if [ -f "${servercfgfullpath}" ]; then
fileport=$(grep "filetransfer_port=" "${servercfgfullpath}" | tr -cd "[:digit:]") fileport=$(grep "filetransfer_port=" "${servercfgfullpath}" | tr -cd "[:digit:]")
fi fi

Loading…
Cancel
Save