From a870845a71dbe1879d6d316f0726c3f75e38249c Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Thu, 10 Apr 2008 01:04:30 +0000 Subject: Add configurable anti spam system, with possible auto ban. --- src/map/pc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 790fc32..9a96008 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -836,6 +836,9 @@ int pc_authok(int id, int login_id2, time_t connect_until_time, struct mmo_chars } } + sd->chat_lastmsg_time = sd->chat_threshold = sd->chat_repeatmsg = 0; + sd->chat_lastmsg[0] = '\0'; + #ifndef TXT_ONLY if(battle_config.mail_system) mail_check(sd,1); // check mail at login [Valaris] -- cgit v1.2.3-60-g2f50