summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-30 21:20:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-30 21:20:14 +0000
commitd9c98bcdfca6da51a1a82dc6c0dc5996b3b6cd6d (patch)
treea6f925c63bc31e4b4dba301183cc3b429d52d816 /protocols/WhatsApp
parentce2d4f19e3f810b282eb7d47d470d426ff459e1f (diff)
new sorting functions applied
git-svn-id: http://svn.miranda-ng.org/main/trunk@11180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp')
-rw-r--r--protocols/WhatsApp/src/proto.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}