summaryrefslogtreecommitdiff
path: root/src/map/tmw.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-04 19:17:38 -0600
committerJared Adams <jaxad0127@gmail.com>2010-04-04 19:17:38 -0600
commitd79ca5c109ab12b4c1292fe16d17dab6919722a5 (patch)
tree43f3f67b07d037b50a47156097195aac0fc4b751 /src/map/tmw.c
parent1e87b3a15f2098fa5b7ad0a895c51f0bfe872267 (diff)
parentb683a1ba9ba9e46bab0d8f94e38ef56669f8530a (diff)
downloadtmwa-d79ca5c109ab12b4c1292fe16d17dab6919722a5.tar.gz
tmwa-d79ca5c109ab12b4c1292fe16d17dab6919722a5.tar.bz2
tmwa-d79ca5c109ab12b4c1292fe16d17dab6919722a5.tar.xz
tmwa-d79ca5c109ab12b4c1292fe16d17dab6919722a5.zip
Merge commit 'refs/merge-requests/2' of git://gitorious.org/tmw-eathena/mainline
Diffstat (limited to 'src/map/tmw.c')
-rw-r--r--src/map/tmw.c70
1 files changed, 0 insertions, 70 deletions
diff --git a/src/map/tmw.c b/src/map/tmw.c
index 7070331..46e02bc 100644
--- a/src/map/tmw.c
+++ b/src/map/tmw.c
@@ -96,76 +96,6 @@ int tmw_CheckChatSpam (struct map_session_data *sd, char *message)
return 0;
}
-int tmw_CheckTradeSpam (struct map_session_data *sd)
-{
- nullpo_retr (1, sd);
- time_t now = time (NULL);
-
- if (pc_isGM (sd))
- return 0;
-
- if (now > sd->trade_reset_due)
- {
- sd->trade_reset_due = now + battle_config.trade_spam_threshold;
- sd->trades_in = 0;
- }
-
- sd->trades_in++;
-
- if (sd->trades_in >= battle_config.trade_spam_flood)
- {
- sd->trades_in = 0;
-
- tmw_AutoBan(sd, "trade", battle_config.trade_spam_ban);
-
- return 1;
- }
-
- if (battle_config.trade_spam_ban
- && sd->trades_in >= battle_config.trade_spam_warn)
- {
- clif_displaymessage (sd->fd,
- "WARNING : You are about to be automaticly banned for trade spam!");
- }
-
- return 0;
-}
-
-int tmw_CheckSitSpam (struct map_session_data *sd)
-{
- nullpo_retr (1, sd);
- time_t now = time (NULL);
-
- if (pc_isGM (sd))
- return 0;
-
- if (now > sd->sit_reset_due)
- {
- sd->sit_reset_due = now + battle_config.sit_spam_threshold;
- sd->sits_in = 0;
- }
-
- sd->sits_in++;
-
- if (sd->sits_in >= battle_config.sit_spam_flood)
- {
- sd->sits_in = 0;
-
- tmw_AutoBan(sd, "sit", battle_config.sit_spam_ban);
-
- return 1;
- }
-
- if (battle_config.sit_spam_ban
- && sd->sits_in >= battle_config.sit_spam_warn)
- {
- clif_displaymessage (sd->fd,
- "WARNING : You are about to be automaticly banned for sit spam!");
- }
-
- return 0;
-}
-
void tmw_AutoBan(struct map_session_data *sd, char *reason, int length)
{
char anotherbuf[512];