summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_commands.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_commands.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_commands.cpp')
-rw-r--r--protocols/MSN/src/msn_commands.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/protocols/MSN/src/msn_commands.cpp b/protocols/MSN/src/msn_commands.cpp
index 6e12f8838a..cb0ad0a302 100644
--- a/protocols/MSN/src/msn_commands.cpp
+++ b/protocols/MSN/src/msn_commands.cpp
@@ -346,19 +346,22 @@ void CMsnProto::MSN_ReceiveMessage(ThreadData* info, char* cmdString, char* para
}
}
else if (!_strnicmp(tContentType, "text/x-msnmsgr-datacast", 23)) {
- if (info->mJoinedContactsWLID.getCount()) {
+ //if (info->mJoinedContactsWLID.getCount()) {
MCONTACT tContact;
- if (info->mChatID[0]) {
+ if (mChatID[0]) {
GC_INFO gci = { 0 };
gci.Flags = GCF_HCONTACT;
gci.pszModule = m_szModuleName;
- gci.pszID = info->mChatID;
+ gci.pszID = mChatID;
CallServiceSync(MS_GC_GETINFO, 0, (LPARAM)&gci);
tContact = gci.hContact;
}
- else tContact = info->getContactHandle();
+ else tContact = MSN_HContactFromEmail(email, nick, true, true);
+ if (!strcmp(tHeader["Message-Type"], "Nudge"))
+ NotifyEventHooks(hMSNNudge, (WPARAM)tContact, 0);
+#ifdef OBSOLETE
MimeHeaders tFileInfo;
tFileInfo.readFromBuffer(msgBody);
@@ -377,6 +380,7 @@ void CMsnProto::MSN_ReceiveMessage(ThreadData* info, char* cmdString, char* para
}
}
}
+#endif
}
else if (!_strnicmp(tContentType, "text/x-msmsgsemailnotification", 30))
sttNotificationMessage(msgBody, false);