From 66357371399956ad19ab667d3c2d49bfc7ea0095 Mon Sep 17 00:00:00 2001 From: Alexander Gluzsky Date: Sun, 29 Jul 2012 18:49:17 +0000 Subject: ICQ: ported icq custom capabilities api from icq plus mod NEW_GPG: many memmory corruption fixes NEW_GPG: improoved auto key exchange git-svn-id: http://svn.miranda-ng.org/main/trunk@1243 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/icq_proto.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) mode change 100644 => 100755 protocols/IcqOscarJ/icq_proto.cpp (limited to 'protocols/IcqOscarJ/icq_proto.cpp') diff --git a/protocols/IcqOscarJ/icq_proto.cpp b/protocols/IcqOscarJ/icq_proto.cpp old mode 100644 new mode 100755 index 69b8ed8e61..7df3c037d3 --- a/protocols/IcqOscarJ/icq_proto.cpp +++ b/protocols/IcqOscarJ/icq_proto.cpp @@ -126,6 +126,7 @@ cheekySearchId( -1 ) CreateResidentSetting("AwayTS"); CreateResidentSetting("LogonTS"); CreateResidentSetting("DCStatus"); + CreateResidentSetting("CapBuf"); //capabilities bufer CreateResidentSetting(DBSETTING_STATUS_NOTE_TIME); CreateResidentSetting(DBSETTING_STATUS_MOOD); @@ -164,6 +165,11 @@ cheekySearchId( -1 ) CreateProtoService(MS_REVOKE_AUTH, &CIcqProto::RevokeAuthorization); CreateProtoService(MS_XSTATUS_SHOWDETAILS, &CIcqProto::ShowXStatusDetails); + + // Custom caps + CreateProtoService(PS_ICQ_ADDCAPABILITY, &CIcqProto::IcqAddCapability); + CreateProtoService(PS_ICQ_CHECKCAPABILITY, &CIcqProto::IcqCheckCapability); + HookProtoEvent(ME_SKIN2_ICONSCHANGED, &CIcqProto::OnReloadIcons); @@ -270,6 +276,8 @@ CIcqProto::~CIcqProto() UninitContactsCache(); + CustomCapList.clear(); + SAFE_DELETE(&m_ratesMutex); SAFE_DELETE(&servlistMutex); -- cgit v1.2.3