summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-08-05 18:28:28 -0700
committerBen Longbons <b.r.longbons@gmail.com>2012-08-05 18:28:28 -0700
commit5cde72ce83a6d6f4a7825b94e0ff984687f98009 (patch)
tree855e4f3708604eaf1d5d90ae2c13bb9302fbfcc3 /src/map/atcommand.c
parent66850e890fe678a54e4b0ccad71b9175f91d1e7b (diff)
downloadtmwa-5cde72ce83a6d6f4a7825b94e0ff984687f98009.tar.gz
tmwa-5cde72ce83a6d6f4a7825b94e0ff984687f98009.tar.bz2
tmwa-5cde72ce83a6d6f4a7825b94e0ff984687f98009.tar.xz
tmwa-5cde72ce83a6d6f4a7825b94e0ff984687f98009.zip
Pass @wgm through chat spam filter.
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 3106244..88e756d 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -8501,6 +8501,8 @@ atcommand_iterate_backwards_over_players (const int fd,
int atcommand_wgm (const int fd, struct map_session_data *sd,
const char *command, const char *message)
{
+ if (tmw_CheckChatSpam(sd, message))
+ return 0;
tmw_GmHackMsg ("%s: %s", sd->status.name, message);
if (!pc_isGM (sd))
clif_displaymessage (fd, "Message sent.");