From 908044e2e71fa151bfd621d86842d4ce40291a80 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Thu, 11 May 2023 00:45:08 +0100 Subject: [PATCH] comment out steamport in not set --- lgsm/modules/core_getopt.sh | 2 +- lgsm/modules/info_game.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lgsm/modules/core_getopt.sh b/lgsm/modules/core_getopt.sh index 517706f74..c758409c5 100644 --- a/lgsm/modules/core_getopt.sh +++ b/lgsm/modules/core_getopt.sh @@ -184,7 +184,7 @@ fn_opt_usage() { core_exit.sh } -# Check if command existw and run corresponding scripts, or display script usage. +# Check if command exists and run corresponding scripts, or display script usage. if [ -z "${getopt}" ]; then fn_opt_usage fi diff --git a/lgsm/modules/info_game.sh b/lgsm/modules/info_game.sh index 518626120..f89cab0d0 100644 --- a/lgsm/modules/info_game.sh +++ b/lgsm/modules/info_game.sh @@ -1929,7 +1929,7 @@ fn_info_game_source() { fn_info_game_valve_keyvalues "servername" "hostname" fn_info_game_valve_keyvalues "serverpassword" "sv_password" fi - # Steamport can be between 26901-26910 and is normaly automatically set. + # Steamport can be between 26901-26910 and is normally automatically set. # Some servers might support -steamport parameter to set if [ "${steamport}" == "0" ] || [ -v "${steamport}" ]; then steamport="$(echo "${ssinfo}" | grep "${srcdslinuxpid}" | awk '{print $5}' | grep ":269" | cut -d ":" -f2)" @@ -1943,7 +1943,7 @@ fn_info_game_source() { rconport="${port:-"0"}" servername="${servername:-"NOT SET"}" serverpassword="${serverpassword:-"NOT SET"}" - steamport="${steamport:-"0"}" + # steamport="${steamport:-"0"}" Steamport is optional so we dont want it to show as not set. } fn_info_game_spark() {