summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-12-16 15:33:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-12-16 15:33:42 +0300
commit7310f494c143feac54a6f2ea3b7e2a2bb5eeac4f (patch)
treec08d448106389ca1947319ada132d6442c5d745b /protocols/ICQ-WIM
parenta686301e552f0b3e7ee63cce4b22ad3c0d6dc4da (diff)
fixes #2122 (ICQ-WIM: removed ICQ contact appears again in the contact list)
Diffstat (limited to 'protocols/ICQ-WIM')
-rw-r--r--protocols/ICQ-WIM/src/poll.cpp9
-rw-r--r--protocols/ICQ-WIM/src/stdafx.h2
-rw-r--r--protocols/ICQ-WIM/src/version.h2
3 files changed, 4 insertions, 9 deletions
diff --git a/protocols/ICQ-WIM/src/poll.cpp b/protocols/ICQ-WIM/src/poll.cpp
index f0d1291427..edeb329bcc 100644
--- a/protocols/ICQ-WIM/src/poll.cpp
+++ b/protocols/ICQ-WIM/src/poll.cpp
@@ -79,8 +79,6 @@ void CIcqProto::ProcessBuddyList(const JSONNode &ev)
void CIcqProto::ProcessDiff(const JSONNode &ev)
{
- std::map<MCONTACT, bool> processed;
-
for (auto &block : ev) {
CMStringW szType = block["type"].as_mstring();
if (szType != "updated" && szType != "created" && szType != "deleted")
@@ -108,14 +106,13 @@ void CIcqProto::ProcessDiff(const JSONNode &ev)
bool bCreated = false, bDeleted = (szType == "deleted");
for (auto &buddy : it["buddies"]) {
- MCONTACT hContact = ParseBuddyInfo(buddy);
- if (hContact == INVALID_CONTACT_ID)
+ if (bDeleted)
continue;
- if (bDeleted)
+ MCONTACT hContact = ParseBuddyInfo(buddy);
+ if (hContact == INVALID_CONTACT_ID)
continue;
- processed[hContact] = true;
setWString(hContact, "IcqGroup", pGroup->wszName);
ptrW wszGroup(Clist_GetGroup(hContact));
diff --git a/protocols/ICQ-WIM/src/stdafx.h b/protocols/ICQ-WIM/src/stdafx.h
index 22d32fa2db..385504c07a 100644
--- a/protocols/ICQ-WIM/src/stdafx.h
+++ b/protocols/ICQ-WIM/src/stdafx.h
@@ -41,8 +41,6 @@
#include <fcntl.h>
#include <process.h>
-#include <map>
-
// Miranda IM SDK includes
#include <newpluginapi.h> // This must be included first
#include <m_avatars.h>
diff --git a/protocols/ICQ-WIM/src/version.h b/protocols/ICQ-WIM/src/version.h
index 9e813e32ec..d6aa5c9c99 100644
--- a/protocols/ICQ-WIM/src/version.h
+++ b/protocols/ICQ-WIM/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 95
#define __RELEASE_NUM 11
-#define __BUILD_NUM 6
+#define __BUILD_NUM 7
#include <stdver.h>