From 0210503a66047c3dae7cc422ed636b3edc770d46 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 15 Dec 2018 19:56:39 +0000 Subject: [PATCH] feat(details): bots will not show if bots are 0 --- lgsm/functions/query_gamedig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/functions/query_gamedig.sh b/lgsm/functions/query_gamedig.sh index 21e0ed091..8fa8d1b45 100644 --- a/lgsm/functions/query_gamedig.sh +++ b/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