4
0
Эх сурвалжийг харах

feat(details): bots will not show if bots are 0

Daniel Gibbs 7 жил өмнө
parent
commit
0210503a66

+ 1 - 1
lgsm/functions/query_gamedig.sh

@@ -118,7 +118,7 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ];
 
 		# numbots
 		gdbots=$(echo "${gamedigraw}" | jq -re '.raw.numbots')
-		if [ "${gdbots}" == "null" ]; then
+		if [ "${gdbots}" == "null" ]||[ "${gdbots}" == "0" ]; then
 			unset gdbots
 		fi
 	fi