From cff01061a3f4f31bf7dd0567c291f65125037b40 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 13 Apr 2021 17:34:45 -0300 Subject: Use a more aggressive chatlog cleanup; We hate chat logs --- npc/functions/global_event_handler.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'npc') diff --git a/npc/functions/global_event_handler.txt b/npc/functions/global_event_handler.txt index 7780ad8b..e832623f 100644 --- a/npc/functions/global_event_handler.txt +++ b/npc/functions/global_event_handler.txt @@ -30,10 +30,11 @@ OnPCDieEvent: // Cleanup: Retain chat logs for 24~48 hours // Cleanup: Retain item logs for 2 months OnClock0500: - if (gettime(GETTIME_DAYOFMONTH) > 1) - query_sql("DELETE FROM `chatlog` WHERE `time` < '"+sqldate(-1)+"'"); query_sql("DELETE FROM `picklog` WHERE `time` < '"+sqldate(0, -2)+"'"); query_sql("DELETE FROM `zenylog` WHERE `time` < '"+sqldate(0, -2)+"'"); +OnClock1700: + if (gettime(GETTIME_DAYOFMONTH) > 1) + query_sql("DELETE FROM `chatlog` WHERE `time` < '"+sqldate(-1)+"'"); end; OnInit: -- cgit v1.2.3-70-g09d2