From 6de929250ffa57f0dee45b90c53c1a5eae4de5c3 Mon Sep 17 00:00:00 2001 From: MadCamel Date: Sat, 6 Feb 2010 12:27:20 -0500 Subject: Cleaned up spamban code a little. Now logs location where ban was triggered. It still needs to be refactored more but this'll do for now. --- src/map/tmw.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/map/tmw.h') diff --git a/src/map/tmw.h b/src/map/tmw.h index e23aa51..bf5fce0 100644 --- a/src/map/tmw.h +++ b/src/map/tmw.h @@ -3,8 +3,10 @@ #include "map.h" int tmw_CheckChatSpam (struct map_session_data *sd, char *message); +int tmw_CheckTradeSpam (struct map_session_data *sd); +int tmw_CheckSitSpam (struct map_session_data *sd); int tmw_ShorterStrlen (char *s1, char *s2); int tmw_CheckChatLameness (struct map_session_data *sd, char *message); void tmw_GmHackMsg (const char *fmt, ...); -int tmw_CheckTradeSpam (struct map_session_data *sd); -int tmw_CheckSitSpam (struct map_session_data *sd); +void tmw_AutoBan(struct map_session_data *sd, char *reason, int length); + -- cgit v1.2.3-70-g09d2