Parcourir la source

Removed slots from source as shouldnt be there

Daniel Gibbs il y a 11 ans
Parent
commit
42719ea70d
1 fichiers modifiés avec 1 ajouts et 11 suppressions
  1. 1 11
      functions/fn_details_config

+ 1 - 11
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