From d9c98bcdfca6da51a1a82dc6c0dc5996b3b6cd6d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Nov 2014 21:20:14 +0000 Subject: new sorting functions applied git-svn-id: http://svn.miranda-ng.org/main/trunk@11180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/proto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/WhatsApp/src') diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index 59e43defdd..50a4e5a389 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -209,9 +209,9 @@ bool WhatsAppProto::Register(int state, const string &cc, const string &number, // Status = fail JSONNODE *val = json_get(resp, "status"); - if (!lstrcmp(ptrT(json_as_string(val)), _T("fail"))) { + if (!mir_tstrcmp(ptrT(json_as_string(val)), _T("fail"))) { JSONNODE *tmpVal = json_get(resp, "reason"); - if (!lstrcmp(ptrT(json_as_string(tmpVal)), _T("stale"))) + if (!mir_tstrcmp(ptrT(json_as_string(tmpVal)), _T("stale"))) this->NotifyEvent(ptszTitle, TranslateT("Registration failed due to stale code. Please request a new code"), NULL, WHATSAPP_EVENT_CLIENT); else this->NotifyEvent(ptszTitle, TranslateT("Registration failed."), NULL, WHATSAPP_EVENT_CLIENT); @@ -229,7 +229,7 @@ bool WhatsAppProto::Register(int state, const string &cc, const string &number, val = json_get(resp, "pw"); if (val != NULL) ret = _T2A(ptrT(json_as_string(val))); - else if (!lstrcmp(ptrT(json_as_string(val)), _T("sent"))) + else if (!mir_tstrcmp(ptrT(json_as_string(val)), _T("sent"))) this->NotifyEvent(ptszTitle, TranslateT("Registration code has been sent to your phone."), NULL, WHATSAPP_EVENT_OTHER); return true; } -- cgit v1.2.3