From 6aac86cbd7f618ca0717d36149f35d845b6b821c Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 4 Apr 2009 14:11:10 -0600 Subject: Fix spam detection --- src/map/clif.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/map/clif.c b/src/map/clif.c index fa008cf..3cece43 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -6494,7 +6494,7 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data *sd) { // S 008c < return; } - int ret = tmw_CheckChatSpam(sd, message); + int ret = tmw_CheckChatSpam(sd, RFIFOP(fd,4)); if (ret == 2) clif_setwaitclose(fd); if (ret > 0) { free(message); @@ -6769,14 +6769,10 @@ void clif_parse_Wis(int fd, struct map_session_data *sd) { // S 0096 .w 0) { printf("returning from whisper (spam)\n"); - free(message); return; } @@ -6816,8 +6812,6 @@ void clif_parse_Wis(int fd, struct map_session_data *sd) { // S 0096 .w