RestartManager: fix logs

since we save uptime on manual restart
This commit is contained in:
dogan 2020-07-17 15:59:01 +02:00
parent 591065c25c
commit 01d9a20a5c

View File

@ -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.");
}
//----------------------------------------------------------------------------------------------------