diff options
author | MadCamel <madcamel@gmail.com> | 2009-08-23 10:52:01 -0400 |
---|---|---|
committer | MadCamel <madcamel@gmail.com> | 2009-08-23 11:08:57 -0400 |
commit | 415983958551f0e7ff72bec2921a67918d96d130 (patch) | |
tree | 1f01b40acb8bb3dae186939f4d63589e90bf67a1 /src/map/map.h | |
parent | 3f230b8323518e90a0389d56ac0b4bbb5262f821 (diff) | |
download | tmwa-415983958551f0e7ff72bec2921a67918d96d130.tar.gz tmwa-415983958551f0e7ff72bec2921a67918d96d130.tar.bz2 tmwa-415983958551f0e7ff72bec2921a67918d96d130.tar.xz tmwa-415983958551f0e7ff72bec2921a67918d96d130.zip |
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.
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |