diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-09-21 19:06:14 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-09-21 19:06:14 +0000 |
commit | 06ca08ab518ba90cc82db8cc9ac27b5a25340510 (patch) | |
tree | fb53c39091f9106431605da5af92fab710b74242 /protocols/WhatsApp/src/proto.cpp | |
parent | a8af09a3f64f5cb1b7417977ed8265b5a97e4107 (diff) |
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
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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) {
|