diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/global_event_handler.txt | 5 |
1 files changed, 3 insertions, 2 deletions
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: |