From bc8df6622b7f7b2129eab428a98ae5b5ab7bb7dc Mon Sep 17 00:00:00 2001 From: MadCamel Date: Thu, 16 Sep 2010 12:39:43 -0400 Subject: Removed configuration vars for trade and sit spam Guess I forgot to remove them when the actual trade/sit spam code was removed. --- src/map/battle.c | 66 -------------------------------------------------------- 1 file changed, 66 deletions(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index 4ec942f..ea284a5 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -5653,16 +5653,6 @@ int battle_config_read (const char *cfgName) battle_config.chat_spam_warn = 8; battle_config.chat_maxline = 255; - battle_config.trade_spam_threshold = 10; - battle_config.trade_spam_flood = 10; - battle_config.trade_spam_ban = 0; - battle_config.trade_spam_warn = 8; - - battle_config.sit_spam_threshold = 1; - battle_config.sit_spam_flood = 15; - battle_config.sit_spam_ban = 0; - battle_config.sit_spam_warn = 3; - battle_config.packet_spam_threshold = 2; battle_config.packet_spam_flood = 30; battle_config.packet_spam_kick = 1; @@ -6113,22 +6103,6 @@ int battle_config_read (const char *cfgName) { "chat_maxline", &battle_config.chat_maxline}, { - "trade_spam_threshold", &battle_config.trade_spam_threshold}, - { - "trade_spam_flood", &battle_config.trade_spam_flood}, - { - "trade_spam_ban", &battle_config.trade_spam_ban}, - { - "trade_spam_warn", &battle_config.trade_spam_warn}, - { - "sit_spam_threshold", &battle_config.sit_spam_threshold}, - { - "sit_spam_flood", &battle_config.sit_spam_flood}, - { - "sit_spam_ban", &battle_config.sit_spam_ban}, - { - "sit_spam_warn", &battle_config.sit_spam_warn}, - { "packet_spam_threshold", &battle_config.packet_spam_threshold}, { "packet_spam_flood", &battle_config.packet_spam_flood}, @@ -6275,46 +6249,6 @@ int battle_config_read (const char *cfgName) else if (battle_config.chat_maxline > 512) battle_config.chat_maxline = 512; - if (battle_config.trade_spam_ban < 0) - battle_config.trade_spam_ban = 0; - else if (battle_config.trade_spam_ban > 32767) - battle_config.trade_spam_ban = 32767; - - if (battle_config.trade_spam_flood < 0) - battle_config.trade_spam_flood = 0; - else if (battle_config.trade_spam_flood > 32767) - battle_config.trade_spam_flood = 32767; - - if (battle_config.trade_spam_warn < 0) - battle_config.trade_spam_warn = 0; - else if (battle_config.trade_spam_warn > 32767) - battle_config.trade_spam_warn = 32767; - - if (battle_config.trade_spam_threshold < 0) - battle_config.trade_spam_threshold = 0; - else if (battle_config.trade_spam_threshold > 32767) - battle_config.trade_spam_threshold = 32767; - - if (battle_config.sit_spam_ban < 0) - battle_config.sit_spam_ban = 0; - else if (battle_config.sit_spam_ban > 32767) - battle_config.sit_spam_ban = 32767; - - if (battle_config.sit_spam_flood < 0) - battle_config.sit_spam_flood = 0; - else if (battle_config.sit_spam_flood > 32767) - battle_config.sit_spam_flood = 32767; - - if (battle_config.sit_spam_warn < 0) - battle_config.sit_spam_warn = 0; - else if (battle_config.sit_spam_warn > 32767) - battle_config.sit_spam_warn = 32767; - - if (battle_config.sit_spam_threshold < 0) - battle_config.sit_spam_threshold = 0; - else if (battle_config.sit_spam_threshold > 32767) - battle_config.sit_spam_threshold = 32767; - if (battle_config.packet_spam_threshold < 0) battle_config.packet_spam_threshold = 0; else if (battle_config.packet_spam_threshold > 32767) -- cgit v1.2.3-70-g09d2