summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/VKontakte/src/misc.cpp2
-rw-r--r--protocols/VKontakte/src/vk_messages.cpp2
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);
}