diff options
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index b4f27823cb..2d7cc09fca 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -59,6 +59,17 @@ HANDLE CVkProto::FindUser(LPCSTR pUserid, bool bCreate) return hNewContact;
}
+bool CVkProto::CheckMid(int msgid)
+{
+ for (int i=m_sendIds.getCount()-1; i >= 0; i--)
+ if (m_sendIds[i] == (HANDLE)msgid) {
+ m_sendIds.remove(i);
+ return true;
+ }
+
+ return false;
+}
+
LPCSTR findHeader(NETLIBHTTPREQUEST *pReq, LPCSTR szField)
{
for (int i=0; i < pReq->headersCount; i++)
|