summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-08-26 18:32:32 -0400
committerMadCamel <madcamel@gmail.com>2009-08-26 18:34:50 -0400
commit79874123b9e62276c67bc2f8e300d6b88d43e151 (patch)
tree2a57e2672236482be073f51e1e2b08bee0dea0d3 /src/map/pc.c
parent5c2a36301c9cc39979137b93262f4e3db1071d5e (diff)
downloadtmwa-79874123b9e62276c67bc2f8e300d6b88d43e151.tar.gz
tmwa-79874123b9e62276c67bc2f8e300d6b88d43e151.tar.bz2
tmwa-79874123b9e62276c67bc2f8e300d6b88d43e151.tar.xz
tmwa-79874123b9e62276c67bc2f8e300d6b88d43e151.zip
Autobans are now logged, more chat spam improvements
Added a timeout to the total repeat counter. 5 minutes by default.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 2 insertions, 1 deletions
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;