diff options
Diffstat (limited to 'protocols/ICQ-WIM/src/server.cpp')
-rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index 6e3f28caeb..5ded75c32d 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -605,11 +605,7 @@ void CIcqProto::OnAddBuddy(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq) continue; int iResultCode = it["resultCode"].as_int(); - if (iResultCode == 0) { - RetrieveUserInfo(pReq->hContact); - Contact_PutOnList(pReq->hContact); - } - else { + if (iResultCode != 0) { debugLogA("Contact %d failed to add: error %d", pReq->hContact, iResultCode); POPUPDATAW Popup = {}; @@ -619,8 +615,11 @@ void CIcqProto::OnAddBuddy(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq) Popup.iSeconds = 20; PUAddPopupW(&Popup); - Contact_RemoveFromList(pReq->hContact); + // Contact_RemoveFromList(pReq->hContact); } + + RetrieveUserInfo(pReq->hContact); + Contact_PutOnList(pReq->hContact); } } } |