From c73d5cfe85557d038e21f35712a679ca8061f6f1 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 31 Oct 2010 03:17:54 +0300 Subject: another cleanup method regex history log --- init.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'init.cpp') 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)) { -- cgit v1.2.3