Browse Source

fix(monitor): correct quakeworld query

pull/2189/head
Daniel Gibbs 6 years ago
parent
commit
c34b9cdaee
  1. 10
      lgsm/functions/query_gamedig.sh

10
lgsm/functions/query_gamedig.sh

@ -30,6 +30,14 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ];
fi
done
local engine_query_array=( quake )
for engine_query in "${engine_query_array[@]}"
do
if [ "${engine_query}" == "${engine}" ]; then
gamedigengine="protocol-quake1"
fi
done
local engine_query_array=( idtech2 iw2.0 )
for engine_query in "${engine_query_array[@]}"
do
@ -38,7 +46,7 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ];
fi
done
local engine_query_array=( idtech3 quake iw3.0 )
local engine_query_array=( idtech3 iw3.0 )
for engine_query in "${engine_query_array[@]}"
do
if [ "${engine_query}" == "${engine}" ]; then

Loading…
Cancel
Save