RestartManager: fix logs
since we save uptime on manual restart
This commit is contained in:
parent
591065c25c
commit
01d9a20a5c
@ -351,7 +351,7 @@ public void GetUptimeIfControlledRestart()
|
|||||||
{
|
{
|
||||||
File UptimeFile = OpenFile("uptime.txt", "r");
|
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];
|
char sUptime[64];
|
||||||
UptimeFile.ReadLine(sUptime, sizeof(sUptime));
|
UptimeFile.ReadLine(sUptime, sizeof(sUptime));
|
||||||
@ -360,7 +360,7 @@ public void GetUptimeIfControlledRestart()
|
|||||||
DeleteFile("uptime.txt");
|
DeleteFile("uptime.txt");
|
||||||
}
|
}
|
||||||
else//Server crashed or restarted manually
|
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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user