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/options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stopspam_mod/trunk/options.cpp') diff --git a/stopspam_mod/trunk/options.cpp b/stopspam_mod/trunk/options.cpp index 9983444..52fd4d5 100644 --- a/stopspam_mod/trunk/options.cpp +++ b/stopspam_mod/trunk/options.cpp @@ -134,7 +134,7 @@ INT_PTR CALLBACK MessagesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar SetDlgItemText(hwnd, ID_QUESTION, gbQuestion.c_str()); SetDlgItemText(hwnd, ID_ANSWER, gbAnswer.c_str()); SetDlgItemText(hwnd, ID_CONGRATULATION, gbCongratulation.c_str()); - SetDlgItemTextA(hwnd, ID_AUTHREPL, gbAuthRepl.c_str()); + SetDlgItemText(hwnd, ID_AUTHREPL, gbAuthRepl.c_str()); } return TRUE; case WM_COMMAND: @@ -175,7 +175,7 @@ INT_PTR CALLBACK MessagesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar gbAnswer = DBGetContactSettingStringPAN(NULL, pluginName, "answer", _T("nospam")); DBWriteContactSettingTString(NULL, pluginName, "authrepl", GetDlgItemString(hwnd, ID_AUTHREPL).c_str()); - 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.")); DBWriteContactSettingTString(NULL, pluginName, "congratulation", GetDlgItemString(hwnd, ID_CONGRATULATION).c_str()); gbCongratulation = DBGetContactSettingStringPAN(NULL, pluginName, "congratulation", _T("Congratulations! You just passed human/robot test. Now you can write me a message.")); -- cgit v1.2.3