Browse Source

telnet no password set

pull/450/head
Daniel Gibbs 10 years ago
parent
commit
5c29f7711a
  1. 4
      functions/fn_details_config

4
functions/fn_details_config

@ -59,7 +59,9 @@ if [ -e "${servercfgfullpath}" ]; then
telnetenabled=$(grep TelnetEnabled "${servercfgfullpath}"|sed 's/^.*value="//'|cut -f1 -d"\"")
telnetport=$(grep TelnetPort "${servercfgfullpath}"|tr -cd [:digit:])
telnetpass=$(grep TelnetPassword "${servercfgfullpath}"|sed 's/^.*value="//'|cut -f1 -d"\"")
if [ -z "${telnetpass}" ]; then
telnetpass="\e[0;31mno password set\e[0m"
fi
elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
servername=$(grep -s ServerName= ${servercfgfullpath}|sed 's/ServerName=//g')
port=$(grep Port= "${servercfgfullpath}"|grep -v Master|grep -v LAN|grep -v Proxy|grep -v Listen|tr -d '\r'|tr -cd [:digit:])

Loading…
Cancel
Save