diff options
author | Dennis Friis <peavey@placid.dk> | 2008-04-10 01:04:30 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-04-10 01:04:30 +0000 |
commit | a870845a71dbe1879d6d316f0726c3f75e38249c (patch) | |
tree | ec1321e701bd8a821ed4ff2346533f948a794ab6 /src/map/pc.c | |
parent | 41b5cece10fb9b59e2b05796c54c4008b523f5b3 (diff) | |
download | tmwa-a870845a71dbe1879d6d316f0726c3f75e38249c.tar.gz tmwa-a870845a71dbe1879d6d316f0726c3f75e38249c.tar.bz2 tmwa-a870845a71dbe1879d6d316f0726c3f75e38249c.tar.xz tmwa-a870845a71dbe1879d6d316f0726c3f75e38249c.zip |
Add configurable anti spam system, with possible auto ban.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 790fc32..9a96008 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -836,6 +836,9 @@ int pc_authok(int id, int login_id2, time_t connect_until_time, struct mmo_chars } } + sd->chat_lastmsg_time = sd->chat_threshold = sd->chat_repeatmsg = 0; + sd->chat_lastmsg[0] = '\0'; + #ifndef TXT_ONLY if(battle_config.mail_system) mail_check(sd,1); // check mail at login [Valaris] |