summaryrefslogtreecommitdiff
path: root/npc/003-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-14 17:03:52 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-14 17:03:52 -0300
commit6cd4c2de5c12b9c83f718d33e2e00e2b6a88bcfa (patch)
treecb9543b5eab70c957eb8d044bcb02f9dbf2a1918 /npc/003-3
parent6cb742fd7cfdc7e8207a001294de33d828a69b52 (diff)
downloadserverdata-6cd4c2de5c12b9c83f718d33e2e00e2b6a88bcfa.tar.gz
serverdata-6cd4c2de5c12b9c83f718d33e2e00e2b6a88bcfa.tar.bz2
serverdata-6cd4c2de5c12b9c83f718d33e2e00e2b6a88bcfa.tar.xz
serverdata-6cd4c2de5c12b9c83f718d33e2e00e2b6a88bcfa.zip
Keep chatlogs for only one week, implement auto deletion policy in server.
This imposes over forks as well instead of being cron-reliant
Diffstat (limited to 'npc/003-3')
-rw-r--r--npc/003-3/malindou.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt
index 28c7e3364..2d3f61006 100644
--- a/npc/003-3/malindou.txt
+++ b/npc/003-3/malindou.txt
@@ -655,6 +655,11 @@ OnInit:
//htput($@CONTRIBUTORS, "", 1);
end;
+OnClock0500:
+ // 23717 2020-12-
+ query_sql("DELETE FROM `chatlog` WHERE `time` < '"+sqldate(-7)+"'");
+ end;
+
// This is for HUB
OnSkillInvoke:
if (!playerattached())