Add Antispam code from NaCl (Chalice Yao)

Amended by: Lirusaito <inusaito@gmail.com>
This commit is contained in:
Ruby
2012-07-19 16:36:39 -04:00
parent 15af410e6f
commit 6673c89791
8 changed files with 726 additions and 2 deletions

View File

@@ -233,6 +233,8 @@
#include "lldxhardware.h"
#endif
#include "NACLantispam.h" // for NaCl Antispam Registry
//
// exported globals
//
@@ -1057,6 +1059,12 @@ bool idle_startup()
LLFile::mkdir(gDirUtilp->getChatLogsDir());
LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir());
// NaCl - Antispam
U32 antispam_time = gSavedSettings.getU32("_NACL_AntiSpamTime");
U32 antispam_amount = gSavedSettings.getU32("_NACL_AntiSpamAmount");
NACLAntiSpamRegistry::registerQueues(antispam_time, antispam_amount);
// NaCl End
//good as place as any to create user windlight directories
std::string user_windlight_path_name(gDirUtilp->getExpandedFilename( LL_PATH_USER_SETTINGS , "windlight", ""));
LLFile::mkdir(user_windlight_path_name.c_str());