diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-05-10 17:11:05 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-05-10 17:11:05 +0000 |
commit | 9403f94a71782e106d29f1ca2df5aa682ea3f746 (patch) | |
tree | 8a7ee36aa1f57295209f50f9044c679a248a9fab /protocols/Skype/src/skype_proto.cpp | |
parent | b94dc989d9eba4bcbf255421b84d1803cbfd0bc1 (diff) |
- added skype emote support (/me chat command)
git-svn-id: http://svn.miranda-ng.org/main/trunk@4623 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.cpp')
-rw-r--r-- | protocols/Skype/src/skype_proto.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_proto.cpp b/protocols/Skype/src/skype_proto.cpp index 1dfa99c3c5..9cca6581d6 100644 --- a/protocols/Skype/src/skype_proto.cpp +++ b/protocols/Skype/src/skype_proto.cpp @@ -293,9 +293,15 @@ int __cdecl CSkypeProto::RecvMsg(HANDLE hContact, PROTORECVEVENT* pre) message = (char *)::mir_realloc(message, msgLen + guid->size());
::memcpy((char *)&message[msgLen], guid->data(), guid->size());
+ CMessage::Ref skype_message;
+ g_skype->GetMessageByGuid(*guid, skype_message);
+
+ CMessage::TYPE messageType;
+ skype_message->GetPropType(messageType);
+
return (INT_PTR)this->AddDBEvent(
hContact,
- EVENTTYPE_MESSAGE,
+ messageType == CMessage::POSTED_TEXT ? EVENTTYPE_MESSAGE : SKYPE_DB_EVENT_TYPE_EMOTE,
pre->timestamp,
DBEF_UTF | ((pre->flags & PREF_CREATEREAD) ? DBEF_READ : 0),
DWORD(msgLen + guid->size()),
|