summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
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;