From 78f4735a2ba203633ec36784e6470e0866c1cb53 Mon Sep 17 00:00:00 2001
From: Daniel Gibbs <me@danielgibbs.co.uk>
Date: Wed, 24 Jan 2024 20:18:46 +0000
Subject: [PATCH 1/2] fix(stats): servers with sessin only checking will now
 show in stats

game servers with session only checks were not showing up in stats. This includes the new Palworld server
---
 lgsm/modules/command_monitor.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lgsm/modules/command_monitor.sh b/lgsm/modules/command_monitor.sh
index 5f1ff77f6..a18154948 100644
--- a/lgsm/modules/command_monitor.sh
+++ b/lgsm/modules/command_monitor.sh
@@ -214,6 +214,10 @@ fn_monitor_check_session() {
 		fn_print_ok "Checking session: "
 		fn_print_ok_eol_nl
 		fn_script_log_pass "Checking session: OK"
+		# send LinuxGSM stats if monitor is OK.
+		if [ "${stats}" == "on" ] || [ "${stats}" == "y" ] && [ "${querymode}" == "1" ]; then
+			info_stats.sh
+		fi
 	else
 		fn_print_error "Checking session: "
 		fn_print_fail_eol_nl

From 08d7a8c87d895555200834501b2651119867a072 Mon Sep 17 00:00:00 2001
From: Daniel Gibbs <me@danielgibbs.co.uk>
Date: Wed, 24 Jan 2024 20:19:13 +0000
Subject: [PATCH 2/2] Release v24.1.2

---
 lgsm/modules/core_modules.sh | 2 +-
 linuxgsm.sh                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lgsm/modules/core_modules.sh b/lgsm/modules/core_modules.sh
index 7293d3720..62f3d8f4e 100644
--- a/lgsm/modules/core_modules.sh
+++ b/lgsm/modules/core_modules.sh
@@ -8,7 +8,7 @@
 
 moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
-modulesversion="v24.1.1"
+modulesversion="v24.1.2"
 
 # Core
 
diff --git a/linuxgsm.sh b/linuxgsm.sh
index d9ca99ada..844aca991 100755
--- a/linuxgsm.sh
+++ b/linuxgsm.sh
@@ -24,7 +24,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 fi
 
-version="v24.1.1"
+version="v24.1.2"
 shortname="core"
 gameservername="core"
 commandname="CORE"