From 415983958551f0e7ff72bec2921a67918d96d130 Mon Sep 17 00:00:00 2001 From: MadCamel Date: Sun, 23 Aug 2009 10:52:01 -0400 Subject: Improved chat spam detection Repeats are now checked only to the length of the shortest line (last line, current line) so "SPAM!!" and "SPAM!!!!!" would be considered a repeat. Total repeats are now counted and a ban is triggered if they exceed battle_config.chat_spam_flood repeats, regardless of time frame. --- src/map/map.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/map.h') diff --git a/src/map/map.h b/src/map/map.h index ad6575a..0516d3a 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -357,6 +357,7 @@ struct map_session_data { time_t chat_reset_due; int chat_lines_in; + int chat_total_repeats; char chat_lastmsg[513]; time_t trade_reset_due; -- cgit v1.2.3-70-g09d2