diff options
-rw-r--r-- | stopspam_mod/trunk/headers.h | 2 | ||||
-rw-r--r-- | stopspam_mod/trunk/options.cpp | 4 | ||||
-rw-r--r-- | stopspam_mod/trunk/resource.h | 4 | ||||
-rw-r--r-- | stopspam_mod/trunk/stopspam.rc | 1 |
4 files changed, 9 insertions, 2 deletions
diff --git a/stopspam_mod/trunk/headers.h b/stopspam_mod/trunk/headers.h index db718df..ff7349e 100644 --- a/stopspam_mod/trunk/headers.h +++ b/stopspam_mod/trunk/headers.h @@ -12,7 +12,7 @@ #include <m_langpack.h>
#include <m_clistint.h>
#include <m_skin.h>
-#define VARIABLES_NOHELPER
+//#define VARIABLES_NOHELPER
#include <m_variables.h>
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"));
diff --git a/stopspam_mod/trunk/resource.h b/stopspam_mod/trunk/resource.h index 4e5950e..c3e8e7a 100644 --- a/stopspam_mod/trunk/resource.h +++ b/stopspam_mod/trunk/resource.h @@ -26,6 +26,8 @@ #define ID_HANDLEAUTHREQ 1015
#define ID_DOS_INTEGRATION 1016
#define ID_SPECIALGROUP 1017
+#define IDC_BUTTON1 1017
+#define IDC_VARS 1017
#define ID_HIDECONTACTS 1018
#define ID_IGNORESPAMMERS 1019
#define ID_REMOVE_TMP 1020
@@ -40,7 +42,7 @@ #ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 104
#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1017
+#define _APS_NEXT_CONTROL_VALUE 1018
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
diff --git a/stopspam_mod/trunk/stopspam.rc b/stopspam_mod/trunk/stopspam.rc index 14ec700..70376e2 100644 --- a/stopspam_mod/trunk/stopspam.rc +++ b/stopspam_mod/trunk/stopspam.rc @@ -39,6 +39,7 @@ BEGIN EDITTEXT ID_CONGRATULATION,0,125,300,48,ES_MULTILINE | ES_AUTOVSCROLL | WS_VSCROLL
LTEXT "Auth. request reply:",IDC_STATIC,0,174,270,8
EDITTEXT ID_AUTHREPL,0,187,300,14,ES_AUTOHSCROLL
+ PUSHBUTTON "Vars. info",IDC_VARS,2,208,50,14
END
IDD_PROTO DIALOGEX 0, 0, 230, 173
|