summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ICQ-WIM/src/server.cpp')
-rw-r--r--protocols/ICQ-WIM/src/server.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index 2680fae71f..024fc34aa8 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -293,7 +293,11 @@ MCONTACT CIcqProto::ParseBuddyInfo(const JSONNode &buddy, MCONTACT hContact)
return si->hContact;
}
- if (hContact == -1) {
+ if (hContact == INVALID_CONTACT_ID) {
+ if (wszId.IsEmpty()) {
+ debugLogA("no aimId in packet? so strange...");
+ return INVALID_CONTACT_ID;
+ }
hContact = CreateContact(wszId, false);
FindContactByUIN(wszId)->m_bInList = true;
}