diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-12-10 20:38:35 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-12-10 20:38:35 +0000 |
commit | d2528d31bac20ff2f7f41355cd398d929d83136a (patch) | |
tree | 0255b613a37fea391b1e3b3e74ed66a943f60d80 /plugins/NewXstatusNotify/src/popup.cpp | |
parent | 4d4710c1749592ec32b5adec4d2c974ebc5fa4ce (diff) |
-fixed status message notification for hidden contacts (reported by Andrzej Aleksiejuk)
-removed the deprecated & bizarre aliases
git-svn-id: http://svn.miranda-ng.org/main/trunk@2715 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src/popup.cpp')
-rw-r--r-- | plugins/NewXstatusNotify/src/popup.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewXstatusNotify/src/popup.cpp b/plugins/NewXstatusNotify/src/popup.cpp index 7d6f1d9672..1ddc5648e1 100644 --- a/plugins/NewXstatusNotify/src/popup.cpp +++ b/plugins/NewXstatusNotify/src/popup.cpp @@ -59,12 +59,12 @@ void ReceivedAwayMessage(HWND hWnd, LPARAM lParam, PLUGINDATA * pdp) DBVARIANT dbv;
HANDLE hContact = PUGetContact(hWnd);
- if ( DBGetContactSettingTString(hContact, MODULE, "LastPopupText", &dbv))
+ if ( db_get_ts(hContact, MODULE, "LastPopupText", &dbv))
return;
TCHAR stzText[MAX_SECONDLINE], *tszStatus = (TCHAR*)ack->lParam;
_tcscpy(stzText, dbv.ptszVal);
- DBFreeVariant(&dbv);
+ db_free(&dbv);
if (tszStatus == NULL || *tszStatus == 0)
return;
@@ -83,7 +83,7 @@ void PopupAction(HWND hWnd, BYTE action) if (hContact && hContact != INVALID_HANDLE_VALUE) {
switch (action) {
case PCA_OPENMESSAGEWND:
- CallServiceSync(ServiceExists("SRMsg/LaunchMessageWindow") ? "SRMsg/LaunchMessageWindow" : MS_MSG_SENDMESSAGE, (WPARAM)hContact, 0);
+ CallServiceSync(MS_MSG_SENDMESSAGET, (WPARAM)hContact, 0);
break;
case PCA_OPENMENU:
@@ -115,7 +115,7 @@ void PopupAction(HWND hWnd, BYTE action) }
}
-INT_PTR CALLBACK PopupDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
+LRESULT CALLBACK PopupDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
PLUGINDATA *pdp = NULL;
|