summaryrefslogtreecommitdiff
path: root/stopspam_mod/trunk/init.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2009-10-01 05:18:46 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2009-10-01 05:18:46 +0300
commit298b3e189486938208a4bf7d15d3aa1b841ef652 (patch)
tree1b8c4873613b181647c29b7efa8002b0c6975c6c /stopspam_mod/trunk/init.cpp
parent5f68bd0ddfd9578e00d0dba2b64c6db1f405bbc8 (diff)
+ option to case insensitive answer checking
+ option to disable question in invisible mode small options dialog redesign
Diffstat (limited to 'stopspam_mod/trunk/init.cpp')
-rw-r--r--stopspam_mod/trunk/init.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/stopspam_mod/trunk/init.cpp b/stopspam_mod/trunk/init.cpp
index 166ac15..2e7b114 100644
--- a/stopspam_mod/trunk/init.cpp
+++ b/stopspam_mod/trunk/init.cpp
@@ -3,6 +3,7 @@
BOOL gbDosServiceExist = 0;
+BOOL gbVarsServiceExist = 0;
DWORD gbMaxQuestCount = 5;
BOOL gbInfTalkProtection = 0;
@@ -14,6 +15,8 @@ BOOL gbIgnoreContacts = 0;
BOOL gbExclude = 1;
BOOL gbDelExcluded = 0;
BOOL gbDosServiceIntegration = 0;
+BOOL gbCaseInsensitive = 0;
+BOOL gbInvisDisable = 0;
//BOOL gbDelNotInList = 0;
tstring gbSpammersGroup = _T("Spammers");
tstring gbQuestion;
@@ -136,6 +139,8 @@ void InitVars()
gbIgnoreContacts = DBGetContactSettingByte(NULL, pluginName, "IgnoreContacts", 0);
gbExclude = DBGetContactSettingByte(NULL, pluginName, "ExcludeContacts", 1);
gbDelExcluded = DBGetContactSettingByte(NULL, pluginName, "DelExcluded", 0);
+ gbCaseInsensitive = DBGetContactSettingByte(NULL, pluginName, "CaseInsensitive", 0);
+ gbInvisDisable = DBGetContactSettingByte(NULL, pluginName, "DisableInInvis", 0);
// gbDelNotInList = DBGetContactSettingByte(NULL, pluginName, "DelNotInList", 0);
}
@@ -143,6 +148,8 @@ static int OnSystemModulesLoaded(WPARAM wParam,LPARAM lParam)
{
if (ServiceExists(MS_DOS_SERVICE))
gbDosServiceExist = TRUE;
+ if (ServiceExists(MS_VARS_FORMATSTRING))
+ gbVarsServiceExist = TRUE;
InitVars();
if(gbDelExcluded)
RemoveExcludedUsers();