diff options
author | George Hazan <ghazan@miranda.im> | 2021-07-14 22:56:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-07-14 22:56:51 +0300 |
commit | 8e707034502d958e4a966a62367595c166ad0289 (patch) | |
tree | 4723ad57ce49e5ba3c421a994596db1c99a50c18 /protocols/ICQ-WIM/src | |
parent | a27b8d54bf5ed63d2e67112d74e3553d950e10dd (diff) |
ICQ: fix for contact addition
Diffstat (limited to 'protocols/ICQ-WIM/src')
-rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index 354f43ac65..2525482ec7 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -744,8 +744,12 @@ void CIcqProto::OnAddBuddy(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq) if (it["buddy"].as_mstring() != wszId) continue; - int iResultCode = it["resultCode"].as_int(); - if (iResultCode != 0) { + switch (int iResultCode = it["resultCode"].as_int()) { + case 0: // success + case 3: // already in contact list + break; + + default: debugLogA("Contact %d failed to add: error %d", pReq->hContact, iResultCode); POPUPDATAW Popup = {}; |