Browse Source

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

pull/2123/head
Daniel Gibbs 6 years ago
parent
commit
0210503a66
  1. 2
      lgsm/functions/query_gamedig.sh

2
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

Loading…
Cancel
Save