summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-12-15 21:30:13 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-12-15 21:30:13 +0300
commitc296f490370ae3c727d8679b70e025838047d82f (patch)
tree77d82ef1dccd8feb27bea7081702440be79dad88 /protocols/ICQ-WIM/src/server.cpp
parent29e95647e80496938bf7bacc1afd352b687aed1f (diff)
softer variant of the previous patch
Diffstat (limited to 'protocols/ICQ-WIM/src/server.cpp')
-rw-r--r--protocols/ICQ-WIM/src/server.cpp11
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);
}
}
}