From 4d4bd94c0e34e2eaedc9d12926f14ccde8e0b69c Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 30 Sep 2009 21:35:51 +0300 Subject: variables support for stopspam (ported from stopspam from koshechka) --- stopspam_mod/trunk/init.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stopspam_mod/trunk/init.cpp') diff --git a/stopspam_mod/trunk/init.cpp b/stopspam_mod/trunk/init.cpp index f762872..166ac15 100644 --- a/stopspam_mod/trunk/init.cpp +++ b/stopspam_mod/trunk/init.cpp @@ -19,7 +19,7 @@ tstring gbSpammersGroup = _T("Spammers"); tstring gbQuestion; tstring gbAnswer; tstring gbCongratulation; -std::string gbAuthRepl; +std::wstring gbAuthRepl; extern char * pluginDescription; extern TCHAR const * defQuestion; extern int RemoveTmp(WPARAM,LPARAM); @@ -39,7 +39,7 @@ UTF8_INTERFACE utfi; PLUGININFOEX pluginInfoEx = { sizeof(PLUGININFOEX), 0, - PLUGIN_MAKE_VERSION(0, 0, 1, 6), + PLUGIN_MAKE_VERSION(0, 0, 1, 7), pluginDescription, "Roman Miklashevsky", "sss123next@list.ru", @@ -101,7 +101,7 @@ char *date() extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { - if ( mirandaVersion < PLUGIN_MAKE_VERSION( 0, 7, 0, 0 )) + if ( mirandaVersion < PLUGIN_MAKE_VERSION( 0, 7, 0, 1 )) return NULL; { static char plugname[52]; @@ -130,7 +130,7 @@ void InitVars() gbQuestion = DBGetContactSettingStringPAN(NULL, pluginName, "question", defQuestion); gbAnswer = DBGetContactSettingStringPAN(NULL, pluginName, "answer", _T("nospam")); gbCongratulation = DBGetContactSettingStringPAN(NULL, pluginName, "congratulation", _T("Congratulations! You just passed human/robot test. Now you can write me a message.")); - gbAuthRepl = DBGetContactSettingStringPAN_A(NULL, pluginName, "authrepl", "StopSpam: send a message and reply to a anti-spam bot question."); + gbAuthRepl = DBGetContactSettingStringPAN(NULL, pluginName, "authrepl", _T("StopSpam: send a message and reply to a anti-spam bot question.")); gbSpecialGroup = DBGetContactSettingByte(NULL, pluginName, "SpecialGroup", 0); gbHideContacts = DBGetContactSettingByte(NULL, pluginName, "HideContacts", 0); gbIgnoreContacts = DBGetContactSettingByte(NULL, pluginName, "IgnoreContacts", 0); -- cgit v1.2.3