From 79874123b9e62276c67bc2f8e300d6b88d43e151 Mon Sep 17 00:00:00 2001 From: MadCamel Date: Wed, 26 Aug 2009 18:32:32 -0400 Subject: Autobans are now logged, more chat spam improvements Added a timeout to the total repeat counter. 5 minutes by default. --- src/map/pc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 0c304ce..d7c2b28 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -816,7 +816,8 @@ int pc_authok(int id, int login_id2, time_t connect_until_time, short tmw_versio } } - sd->chat_reset_due = sd->chat_lines_in = sd->chat_total_repeats = 0; + // Initialize antispam vars + sd->chat_reset_due = sd->chat_lines_in = sd->chat_total_repeats = sd->chat_repeat_reset_due = 0; sd->chat_lastmsg[0] = '\0'; sd->trade_reset_due = sd->trades_in = 0; sd->sit_reset_due = sd->sits_in = 0; -- cgit v1.2.3-60-g2f50