summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify/src
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-02-11 19:26:03 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-02-11 19:26:03 +0000
commita06fc0aa16053a91bf93a28020a46b78dca17ee1 (patch)
treea33abad00d531250a8db9968c5321f46ec3132d6 /plugins/NewXstatusNotify/src
parent1925d3521846f4e6683d3d537cc41de9c9bd7250 (diff)
- fixed handling of icq status message change
git-svn-id: http://svn.miranda-ng.org/main/trunk@8102 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src')
-rw-r--r--plugins/NewXstatusNotify/src/main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp
index 5c7f5665cd..a0aa2fda29 100644
--- a/plugins/NewXstatusNotify/src/main.cpp
+++ b/plugins/NewXstatusNotify/src/main.cpp
@@ -149,7 +149,7 @@ int ProcessExtraStatus(DBCONTACTWRITESETTING *cws, MCONTACT hContact)
return 1;
}
}
- else if (strstr(cws->szSetting, "XStatus") || strcmp(cws->szSetting, "StatusNote") == 0) {
+ else if (strstr(cws->szSetting, "XStatus")/* || strcmp(cws->szSetting, "StatusNote") == 0*/) {
if (strcmp(cws->szSetting, "XStatusName") == 0) {
if (cws->value.type == DBVT_DELETED)
xsc = NewXSC(hContact, szProto, TYPE_ICQ_XSTATUS, NOTIFY_REMOVE, NULL, NULL);
@@ -167,7 +167,7 @@ int ProcessExtraStatus(DBCONTACTWRITESETTING *cws, MCONTACT hContact)
ExtraStatusChanged(xsc);
}
- else if (strstr(cws->szSetting, "XStatusMsg") || strcmp(cws->szSetting, "StatusNote") == 0) {
+ else if (strstr(cws->szSetting, "XStatusMsg")/* || strcmp(cws->szSetting, "StatusNote") == 0*/) {
if (cws->value.type == DBVT_DELETED)
return 1;
@@ -541,8 +541,9 @@ int ProcessStatus(DBCONTACTWRITESETTING *cws, MCONTACT hContact)
return 0;
}
-int ContactSettingChanged(WPARAM hContact, LPARAM lParam)
+int ContactSettingChanged(WPARAM wParam, LPARAM lParam)
{
+ MCONTACT hContact = wParam;
if (hContact == NULL)
return 0;
@@ -746,10 +747,11 @@ void PlayChangeSound(MCONTACT hContact, WORD oldStatus, WORD newStatus)
SkinPlaySound(szSoundFile);
}
-int ContactStatusChanged(WPARAM hContact, LPARAM lParam)
+int ContactStatusChanged(WPARAM wParam, LPARAM lParam)
{
WORD oldStatus = LOWORD(lParam);
WORD newStatus = HIWORD(lParam);
+ MCONTACT hContact = wParam;
bool bEnablePopup = true, bEnableSound = true;
char *hlpProto = GetContactProto(hContact);