summaryrefslogtreecommitdiff
path: root/plugins/MirOTR
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 12:49:22 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 12:49:22 +0000
commitb280d2eae93fb22b4fdb45218d8a06287a97030e (patch)
treef4e0d9921a57bafdb608a55a107bad3408b8f909 /plugins/MirOTR
parent159b565b390687258ee65a3b66596e118752063c (diff)
replace _tcscmp to mir_tstrcmp
git-svn-id: http://svn.miranda-ng.org/main/trunk@13753 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR')
-rw-r--r--plugins/MirOTR/src/svcs_menu.cpp2
-rw-r--r--plugins/MirOTR/src/utils.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirOTR/src/svcs_menu.cpp b/plugins/MirOTR/src/svcs_menu.cpp
index 17a3b589ae..93771cfa23 100644
--- a/plugins/MirOTR/src/svcs_menu.cpp
+++ b/plugins/MirOTR/src/svcs_menu.cpp
@@ -31,7 +31,7 @@ int StartOTR(MCONTACT hContact) {
LCID langid = Langpack_GetDefaultLocale();
if(langid != 0x0409/*US*/ && langid != 0x1009/*CA*/ && langid != 0x0809/*GB*/){ // non english
const TCHAR* translated=TranslateTS(MIROTR_PROTO_HELLO_MSG);
- if(_tcscmp(MIROTR_PROTO_HELLO_MSG,translated)){
+ if(mir_tstrcmp(MIROTR_PROTO_HELLO_MSG,translated)){
*msgoff++ = '\n';
for(const TCHAR* c=nick; *c && msgoff<msgend; *msgoff++=*c++);
for(const TCHAR* c=translated; *c && msgoff<msgend; *msgoff++=*c++);
diff --git a/plugins/MirOTR/src/utils.cpp b/plugins/MirOTR/src/utils.cpp
index 31f629d350..93375922e8 100644
--- a/plugins/MirOTR/src/utils.cpp
+++ b/plugins/MirOTR/src/utils.cpp
@@ -372,13 +372,13 @@ const TCHAR *policy_to_string(OtrlPolicy policy) {
}
OtrlPolicy policy_from_string(const TCHAR *polstring) {
- if (_tcscmp(polstring, TranslateT(LANG_POLICY_NEVER)) == 0)
+ if (mir_tstrcmp(polstring, TranslateT(LANG_POLICY_NEVER)) == 0)
return OTRL_POLICY_NEVER;
- else if (_tcscmp(polstring, TranslateT(LANG_POLICY_OPP)) == 0)
+ else if (mir_tstrcmp(polstring, TranslateT(LANG_POLICY_OPP)) == 0)
return OTRL_POLICY_OPPORTUNISTIC;
- else if (_tcscmp(polstring, TranslateT(LANG_POLICY_MANUAL)) == 0)
+ else if (mir_tstrcmp(polstring, TranslateT(LANG_POLICY_MANUAL)) == 0)
return OTRL_POLICY_MANUAL_MOD;
- else if (_tcscmp(polstring, TranslateT(LANG_POLICY_ALWAYS)) == 0)
+ else if (mir_tstrcmp(polstring, TranslateT(LANG_POLICY_ALWAYS)) == 0)
return OTRL_POLICY_ALWAYS;
else
return CONTACT_DEFAULT_POLICY;