summaryrefslogtreecommitdiff
path: root/stopspam_mod/trunk/options.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2009-09-30 22:52:32 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2009-09-30 22:52:32 +0300
commit5f68bd0ddfd9578e00d0dba2b64c6db1f405bbc8 (patch)
tree1a27b908ae6fc39b4792cc15200336305eec7380 /stopspam_mod/trunk/options.cpp
parentbc65af670e04a1c3244f47052475b24dddfd93d0 (diff)
variables help button
fixed dynamic loading of settings changes (question)
Diffstat (limited to 'stopspam_mod/trunk/options.cpp')
-rw-r--r--stopspam_mod/trunk/options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/stopspam_mod/trunk/options.cpp b/stopspam_mod/trunk/options.cpp
index 52fd4d5..d3db9b2 100644
--- a/stopspam_mod/trunk/options.cpp
+++ b/stopspam_mod/trunk/options.cpp
@@ -157,6 +157,9 @@ INT_PTR CALLBACK MessagesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
SetDlgItemText(hwnd, ID_CONGRATULATION, TranslateTS(_T("Congratulations! You just passed human/robot test. Now you can write me a message.")));
SendMessage(GetParent(hwnd), PSM_CHANGED, 0, 0);
return TRUE;
+ case IDC_VARS:
+ variables_showhelp(hwnd, msg, 0, "", "");
+ return TRUE;
}
SendMessage(GetParent(hwnd), PSM_CHANGED, 0, 0);
}
@@ -170,6 +173,7 @@ INT_PTR CALLBACK MessagesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
{
DBWriteContactSettingTString(NULL, pluginName, "question",
GetDlgItemString(hwnd, ID_QUESTION).c_str());
+ gbQuestion = DBGetContactSettingStringPAN(NULL, pluginName, "question", defQuestion);
DBWriteContactSettingTString(NULL, pluginName, "answer",
GetDlgItemString(hwnd, ID_ANSWER).c_str());
gbAnswer = DBGetContactSettingStringPAN(NULL, pluginName, "answer", _T("nospam"));