From cb783393aa7a85fc2694aa1a2ac99408fbf34e94 Mon Sep 17 00:00:00 2001 From: Akshay Rohatgi <52616034+Akshay-Rohatgi@users.noreply.github.com> Date: Sat, 7 Aug 2021 14:53:44 -0700 Subject: [PATCH] Handle disabled state sarp (#125) --- cmd/remote.go | 6 ++++++ cmd/utility.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/remote.go b/cmd/remote.go index 30000afe..3ca0dfbd 100644 --- a/cmd/remote.go +++ b/cmd/remote.go @@ -226,6 +226,12 @@ func checkServer() { failPrint("Remote server returned an error for its status! Your ID is probably wrong.") sendNotification("Status check failed, TeamID incorrect!") mc.Connection = false + } else if mc.Conn.ServerStatus == "DISABLED" { + mc.Conn.OverallColor = RED + mc.Conn.OverallStatus = "Remote scoring server is no longer accepting scores." + failPrint("Remote scoring server is no longer accepting scores.") + sendNotification("Remote scoring server is no longer accepting scores.") + mc.Connection = false } else { timeStart = time.Now() mc.Conn.OverallColor = GREEN diff --git a/cmd/utility.go b/cmd/utility.go index 804c0296..d138a3eb 100644 --- a/cmd/utility.go +++ b/cmd/utility.go @@ -13,7 +13,7 @@ import ( ) const ( - AeacusVersion = "1.8.0" + AeacusVersion = "1.8.3" ScoringConf = "scoring.conf" ScoringData = "scoring.dat" LinuxDir = "/opt/aeacus/"