From 06ca08ab518ba90cc82db8cc9ac27b5a25340510 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 21 Sep 2015 19:06:14 +0000 Subject: WhatsApp: - Request password with Voice (patch by Cassio) - minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15418 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/proto.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'protocols/WhatsApp/src/proto.cpp') diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index 0db6f3fa84..dcc8367e16 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -278,8 +278,10 @@ bool WhatsAppProto::Register(int state, const string &cc, const string &number, std::string reason = resp["reason"].as_string(); if (reason == "stale") NotifyEvent(ptszTitle, TranslateT("Registration failed due to stale code. Please request a new code"), NULL, WHATSAPP_EVENT_CLIENT); - else - NotifyEvent(ptszTitle, TranslateT("Registration failed."), NULL, WHATSAPP_EVENT_CLIENT); + else { + CMString tmp(FORMAT, TranslateT("Registration failed. Reason: %s"), reason.c_str()); + NotifyEvent(ptszTitle, tmp, NULL, WHATSAPP_EVENT_CLIENT); + } const JSONNode &tmpVal = resp["retry_after"]; if (tmpVal) { -- cgit v1.2.3