summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirOTR/src/utils.cpp')
-rw-r--r--plugins/MirOTR/src/utils.cpp8
1 files changed, 4 insertions, 4 deletions
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;