From 298b3e189486938208a4bf7d15d3aa1b841ef652 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 1 Oct 2009 05:18:46 +0300 Subject: + option to case insensitive answer checking + option to disable question in invisible mode small options dialog redesign --- stopspam_mod/trunk/init.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'stopspam_mod/trunk/init.cpp') 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(); -- cgit v1.2.3