ソースを参照

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

Daniel Gibbs 7 年 前
コミット
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