summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-10-04 12:59:00 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-10-04 12:59:00 +0000
commit0c3fbeb0557c85cbe7c103053c869b6e3b42fab6 (patch)
treeae1193794d135f2a6e08a2a36c6ec741a156ee08 /protocols/VKontakte/src/misc.cpp
parent73c4eeff66a56dc1df1c19dd1841c77e6458f4a7 (diff)
VKontakte:
Upload files support part 1 (photo) version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@10683 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 2a3b930fa2..75e23daac8 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -479,4 +479,14 @@ void CVkProto::SetMirVer(MCONTACT hContact, int platform)
if (bSetFlag)
setTString(hContact, "MirVer", MirVer.GetBuffer());
+}
+
+bool tlstrstr(TCHAR* _s1, TCHAR* _s2)
+{
+ TCHAR s1[1024], s2[1024];
+ mir_sntprintf(s1, SIZEOF(s1), _T("%s"), _s1);
+ mir_sntprintf(s2, SIZEOF(s2), _T("%s"), _s2);
+ CharLowerBuff(s1, SIZEOF(s1));
+ CharLowerBuff(s2, SIZEOF(s2));
+ return (_tcsstr(s1, s2) == NULL);
} \ No newline at end of file