diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-08-16 11:07:10 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-08-16 11:07:10 -0600 |
commit | d54b91582b6f8ba1a2c26411dd122d80930f3b02 (patch) | |
tree | cc0a05ac68576900492611274b0ea77ad39718e8 /src/map/pc.c | |
parent | 4fcb38d69d1b61cc79b6b9af06918e5c228b242b (diff) | |
download | tmwa-d54b91582b6f8ba1a2c26411dd122d80930f3b02.tar.gz tmwa-d54b91582b6f8ba1a2c26411dd122d80930f3b02.tar.bz2 tmwa-d54b91582b6f8ba1a2c26411dd122d80930f3b02.tar.xz tmwa-d54b91582b6f8ba1a2c26411dd122d80930f3b02.zip |
Adjust auto ban code and add sit spam handling
All three ban types can now either ban or just ingore new packets. Trade
and sit spam default to ignore. Chat spam defaults to 1hr ban.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 7aec359..6f1cc86 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -820,6 +820,8 @@ int pc_authok(int id, int login_id2, time_t connect_until_time, short tmw_versio sd->chat_lastmsg[0] = '\0'; sd->trade_reset_due = sd->trades_in = 0; + + sd->sit_reset_due = sd->sits_in = 0; // message of the limited time of the account if (connect_until_time != 0) { // don't display if it's unlimited or unknow value |