Просмотр исходного кода

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

Daniel Gibbs 7 лет назад
Родитель
Сommit
0210503a66
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lgsm/functions/query_gamedig.sh

+ 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