From 971c4bf9a38c0a059fda2124858b7b709d0c0157 Mon Sep 17 00:00:00 2001 From: dogan Date: Fri, 17 Jul 2020 15:59:01 +0200 Subject: [PATCH] RestartManager: fix logs since we save uptime on manual restart --- RestartManager/scripting/RestartManager.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RestartManager/scripting/RestartManager.sp b/RestartManager/scripting/RestartManager.sp index 0128c37a..ad4505a2 100644 --- a/RestartManager/scripting/RestartManager.sp +++ b/RestartManager/scripting/RestartManager.sp @@ -351,7 +351,7 @@ public void GetUptimeIfControlledRestart() { File UptimeFile = OpenFile("uptime.txt", "r"); - if(UptimeFile != null)//Server was restarted automatically by this plugin + if(UptimeFile != null)//Server was restarted automatically by this plugin or an admin { char sUptime[64]; UptimeFile.ReadLine(sUptime, sizeof(sUptime)); @@ -360,7 +360,7 @@ public void GetUptimeIfControlledRestart() DeleteFile("uptime.txt"); } else//Server crashed or restarted manually - LogToFile("addons/sourcemod/logs/restarts.log", "Server crashed or was restarted manually."); + LogToFile("addons/sourcemod/logs/restarts.log", "Server crashed."); } //----------------------------------------------------------------------------------------------------