summaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-10-31 03:17:54 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-10-31 03:17:54 +0300
commitc73d5cfe85557d038e21f35712a679ca8061f6f1 (patch)
tree3eb98f75b0e3fe8a22645f92277f60e9c20379b1 /init.cpp
parent805aae34900744c6904cad9437506fdf860e12e7 (diff)
another cleanup method
regex history log
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/init.cpp b/init.cpp
index ab4c4e1..76f3d9e 100644
--- a/init.cpp
+++ b/init.cpp
@@ -15,8 +15,10 @@ BOOL gbIgnoreContacts = 0;
BOOL gbExclude = 1;
BOOL gbDelExcluded = 0;
BOOL gbDelAllTempory = 0;
+BOOL gbHistoryLog = 0;
BOOL gbDosServiceIntegration = 0;
BOOL gbCaseInsensitive = 0;
+BOOL gbRegexMatch = 0;
BOOL gbInvisDisable = 0;
BOOL gbIgnoreURL = 1;
BOOL gbLogToFile=0;
@@ -52,12 +54,12 @@ UTF8_INTERFACE utfi;
PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
0,
- PLUGIN_MAKE_VERSION(0, 0, 1, 9),
+ PLUGIN_MAKE_VERSION(0, 0, 2, 0),
pluginDescription,
- "Roman Miklashevsky",
+ "Roman Miklashevsky, sss, Elzor",
"sss123next@list.ru",
"© 2004-2010 Roman Miklashevsky, A. Petkevich, Kosh&chka, sss, Elzor",
- "http://sss.chaoslab.ru:81/tracker/mim_plugs/",
+ "http://sss.chaoslab.ru/tracker/mim_plugs/",
UNICODE_AWARE,
0,
MIID_STOPSPAM
@@ -152,6 +154,7 @@ void InitVars()
gbDelExcluded = DBGetContactSettingByte(NULL, pluginName, "DelExcluded", 0);
gbDelAllTempory = DBGetContactSettingByte(NULL, pluginName, "DelAllTempory", 0);
gbCaseInsensitive = DBGetContactSettingByte(NULL, pluginName, "CaseInsensitive", 0);
+ gbRegexMatch = DBGetContactSettingByte(NULL, pluginName, "RegexMatch", 0);
gbInvisDisable = DBGetContactSettingByte(NULL, pluginName, "DisableInInvis", 0);
gbIgnoreURL = DBGetContactSettingByte(NULL, pluginName, "IgnoreURL", 0);
gbAutoAuthGroup = DBGetContactSettingStringPAN(NULL, pluginName, "AutoAuthGroup", _T("Not Spammers"));
@@ -159,6 +162,7 @@ void InitVars()
gbAutoAddToServerList=DBGetContactSettingByte(NULL, pluginName, "AutoAddToServerList", 0);
gbAutoReqAuth=DBGetContactSettingByte(NULL, pluginName, "AutoReqAuth", 0);
gbLogToFile=DBGetContactSettingByte(NULL, pluginName, "LogSpamToFile", 0);
+ gbHistoryLog = DBGetContactSettingByte(NULL, pluginName, "HistoryLog", 0);
}
@@ -169,10 +173,9 @@ static int OnSystemModulesLoaded(WPARAM wParam,LPARAM lParam)
if (ServiceExists(MS_VARS_FORMATSTRING))
gbVarsServiceExist = TRUE;
InitVars();
- if(gbDelExcluded)
- RemoveExcludedUsers();
- if(gbDelAllTempory)
- RemoveTmp(0,0);
+ void CleanThread();
+ if(gbDelAllTempory || gbDelExcluded)
+ boost::thread *thr = new boost::thread(CleanThread);
// Folders plugin support
if (ServiceExists(MS_FOLDERS_REGISTER_PATH))
{