Daniel Gibbs há 10 anos atrás
pai
commit
9bf343a9c7
1 ficheiros alterados com 0 adições e 26 exclusões
  1. 0 26
      lgsm/functions/info_parms.sh

+ 0 - 26
lgsm/functions/info_parms.sh

@@ -45,30 +45,6 @@ fn_info_config_source(){
 	clientport=${clientport:-"0"}
 	clientport=${clientport:-"0"}
 }
 }
 
 
-fn_info_config_teamspeak3(){
-	if [ ! -f "${servercfgfullpath}" ]; then
-		dbplugin="${unavailable}"
-		port="9987"
-		queryport="10011"
-		fileport="30033"
-	else
-		# check if the ip exists in the config file. Failing this will fall back to the default.
-		ipconfigcheck=$(grep "voice_ip=" "${servercfgfullpath}" | sed 's/\voice_ip=//g')
-		if [ -n "${ipconfigcheck}" ]; then
-			ip="${ipconfigcheck}"
-		fi
-		dbplugin=$(grep "dbplugin=" "${servercfgfullpath}" | sed 's/\dbplugin=//g')
-		port=$(grep "default_voice_port=" "${servercfgfullpath}" | tr -cd '[:digit:]')
-		queryport=$(grep "query_port=" "${servercfgfullpath}" | tr -cd '[:digit:]')
-		fileport=$(grep "filetransfer_port=" "${servercfgfullpath}" | tr -cd '[:digit:]')
-
-		# Not Set
-		port=${port:-"9987"}
-		queryport=${queryport:-"10011"}
-		fileport=${fileport:-"30033"}
-	fi
-}
-
 fn_info_config_teeworlds(){
 fn_info_config_teeworlds(){
 	if [ ! -f "${servercfgfullpath}" ]; then
 	if [ ! -f "${servercfgfullpath}" ]; then
 		servername="unnamed server"
 		servername="unnamed server"
@@ -164,8 +140,6 @@ elif [ "${engine}" == "seriousengine35" ]; then
 # Source Engine Games
 # Source Engine Games
 elif [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
 elif [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
 	fn_info_config_source
 	fn_info_config_source
-elif [ "${gamename}" == "Teamspeak 3" ]; then
-	fn_info_config_teamspeak3
 # Teeworlds
 # Teeworlds
 elif [ "${engine}" == "teeworlds" ]; then
 elif [ "${engine}" == "teeworlds" ]; then
 	fn_info_config_teeworlds
 	fn_info_config_teeworlds