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.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index 10a7905f27..b9aa8ad77f 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -487,8 +487,10 @@ void CIcqProto::ParseMessage(MCONTACT hContact, __int64 &lastMsgId, const JSONNo
}
else {
if (it["class"].as_mstring() == L"event") {
+ CMStringW wszType(it["eventTypeId"].as_mstring());
+
// user added you
- if (it["eventTypeId"].as_mstring() == L"27:33000") {
+ if (wszType == L"27:33000") {
if (bLocalTime) {
CMStringA id = getMStringA(hContact, DB_KEY_ID);
int pos = id.Find('@');
@@ -525,6 +527,10 @@ void CIcqProto::ParseMessage(MCONTACT hContact, __int64 &lastMsgId, const JSONNo
}
return;
}
+
+ // message was deleted
+ if (wszType == L"27:51000")
+ wszText = TranslateT("Message was deleted");
}
}