diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-09-16 14:11:06 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-09-16 14:11:06 +0000 |
commit | dfa2c32267d9a404fb4bb9a324f83e196624671f (patch) | |
tree | 5e29ef430d57a89dbe7e851256f507c28246ed19 | |
parent | d0a1040e019092c29d8d2a2c2a29bc1e7644a5e5 (diff) |
VKontakte: fix sticker sent
git-svn-id: http://svn.miranda-ng.org/main/trunk@15362 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 2 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_messages.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 4f24f82615..b83bb0d396 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -671,7 +671,7 @@ char* CVkProto::GetStickerId(const char* Msg, int &stickerid) if (retLen < mir_strlen(Msg)) {
CMStringA szMsg(Msg, int(mir_strlen(Msg) - mir_strlen(tmpMsg)));
szMsg.Append(&tmpMsg[retLen]);
- retMsg = mir_strdup(szMsg);
+ retMsg = mir_strdup(szMsg.Trim());
}
}
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp index ad75928ae9..3e22601291 100644 --- a/protocols/VKontakte/src/vk_messages.cpp +++ b/protocols/VKontakte/src/vk_messages.cpp @@ -69,7 +69,7 @@ int CVkProto::SendMsg(MCONTACT hContact, int, const char *szMsg) if (!m_bServerDelivery)
ForkThread(&CVkProto::SendMsgAck, new CVkSendMsgParam(hContact, msgId));
- if (retMsg) {
+ if (!IsEmpty(retMsg)) {
Sleep(330);
SendMsg(hContact, 0, retMsg);
}
|