summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_svcs.cpp
diff options
context:
space:
mode:
authorPiotr Piastucki <leech.miranda@gmail.com>2015-05-21 01:53:38 +0000
committerPiotr Piastucki <leech.miranda@gmail.com>2015-05-21 01:53:38 +0000
commitfe2371ce9bc89d4673a46163715268e640d2ce31 (patch)
tree0966d1bb5d5bf706c1a2c08d54548eaa07a44b71 /protocols/MSN/src/msn_svcs.cpp
parent1b673c9c170f595fdf9a0c34029451bbba3d4139 (diff)
Fixed sending nudges.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13727 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_svcs.cpp')
-rw-r--r--protocols/MSN/src/msn_svcs.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/protocols/MSN/src/msn_svcs.cpp b/protocols/MSN/src/msn_svcs.cpp
index 46cd62754a..1238f17b3f 100644
--- a/protocols/MSN/src/msn_svcs.cpp
+++ b/protocols/MSN/src/msn_svcs.cpp
@@ -240,7 +240,6 @@ INT_PTR CMsnProto::SetNickName(WPARAM wParam, LPARAM lParam)
return 0;
}
-#ifdef OBSOLETE
/////////////////////////////////////////////////////////////////////////////////////////
// MsnSendNudge - Sending a nudge
@@ -251,12 +250,13 @@ INT_PTR CMsnProto::SendNudge(WPARAM hContact, LPARAM)
char tEmail[MSN_MAX_EMAIL_LEN];
if (MSN_IsMeByContact(hContact, tEmail)) return 0;
+ int netId = Lists_GetNetId(tEmail);
+
+#ifdef OBSOLETE
static const char nudgemsg[] =
"Content-Type: text/x-msnmsgr-datacast\r\n\r\n"
"ID: 1\r\n\r\n";
- int netId = Lists_GetNetId(tEmail);
-
switch (netId) {
case NETID_UNKNOWN:
hContact = MSN_GetChatInernalHandle(hContact);
@@ -284,9 +284,13 @@ INT_PTR CMsnProto::SendNudge(WPARAM hContact, LPARAM)
default:
break;
}
+#else
+ msnNsThread->sendMessage('3', tEmail, netId, "", MSG_NUDGE);
+#endif
return 0;
}
+#ifdef OBSOLETE
/////////////////////////////////////////////////////////////////////////////////////////
// GetCurrentMedia - get current media