summaryrefslogtreecommitdiff
path: root/plugins/Nudge
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-30 17:45:03 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-30 17:45:03 +0000
commitd77850e44b6d38380c08896ba5f2e043c7c69fb2 (patch)
tree63b253f7fa693601210886a4cac2a1713884e866 /plugins/Nudge
parent12053939f5b0c757a2b099e90fc0b7371e8817e1 (diff)
mir_free won again!
git-svn-id: http://svn.miranda-ng.org/main/trunk@701 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Nudge')
-rw-r--r--plugins/Nudge/main.cpp24
1 files changed, 4 insertions, 20 deletions
diff --git a/plugins/Nudge/main.cpp b/plugins/Nudge/main.cpp
index a66a7b0d5c..1bb2e5b876 100644
--- a/plugins/Nudge/main.cpp
+++ b/plugins/Nudge/main.cpp
@@ -285,33 +285,17 @@ int TriggerActionRecv( DWORD actionID, REPORTINFO *ri)
ShakeClist(NULL,NULL);
if(bshakeChat && (hContact != NULL))
ShakeChat((WPARAM)hContact,NULL);
-
- /* // Actually show the message box
- DBVARIANT dbv;
- TCHAR *tszMsg;
-
- // Retrieve the correct settings for this action ID
- if (!DBGetActionSettingTString(actionID, NULL, MODULENAME, SETTING_TEXT, &dbv)) {
- // Parse by Variables, if available (notice extratext and subject are given).
- tszMsg = variables_parsedup(dbv.ptszVal, ((ri->td!=NULL)&&(ri->td->dFlags&DF_TEXT))?ri->td->tszText:NULL, ((ri->td!=NULL)&&(ri->td->dFlags&DF_CONTACT))?ri->td->hContact:NULL);
- if (tszMsg != NULL) {
- // Show the message box
- MessageBox(NULL, tszMsg, TranslateT("ExampleAction"), MB_OK);
- free(tszMsg);
- }
- DBFreeVariant(&dbv);
- }
- */
}
- if (ri->flags&ACT_CLEANUP) { // request to delete all associated settings
+
+ if (ri->flags&ACT_CLEANUP) // request to delete all associated settings
RemoveAllActionSettings(actionID, "Nudge");
- }
+
return FALSE;
}
int TriggerActionSend( DWORD actionID, REPORTINFO *ri)
{
- if (ri->flags&ACT_PERFORM) {
+ if (ri->flags & ACT_PERFORM) {
HANDLE hContact = ((ri->td!=NULL)&&(ri->td->dFlags&DF_CONTACT))?ri->td->hContact:NULL;
if(hContact != NULL)
NudgeSend((WPARAM)hContact,NULL);