From 69c525336f25083947d9f246de16fb83f73ce9d8 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 27 Oct 2010 18:31:17 +0300 Subject: working on autoexchange, reworking prescense, other fings, trying to avoid db usage, using memory for temporary data instead --- utilities.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'utilities.cpp') diff --git a/utilities.cpp b/utilities.cpp index 4a9fadc..2dc210e 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -778,7 +778,8 @@ static JABBER_HANDLER_FUNC PrescenseHandler(IJabberInterface *ji, HXML node, voi break; hContact = (*p)->getJabberInterface()->Sys()->ContactFromJID(xi.getAttrValue(node, _T("from"))); if(hContact) - DBWriteContactSettingString(hContact, szGPGModuleName, "KeyID_Prescense", out.substr(p1, p2-p1-1).c_str()); +// DBWriteContactSettingString(hContact, szGPGModuleName, "KeyID_Prescense", out.substr(p1, p2-p1-1).c_str()); + hcontact_data[hContact].key_in_prescense = out.substr(p1, p2-p1-1).c_str(); } } } @@ -813,7 +814,10 @@ void AddHandlers() } extern bool bAutoExchange; if(bAutoExchange) - (*p)->getJabberInterface()->Net()->RegisterFeature(_T("GPG Key Auto Exchange"), _T("Indicates that gpg installed and configured to public key auto exchange (currently implemented in new_gpg Miranda IM plugin)")); + { + (*p)->getJabberInterface()->Net()->RegisterFeature(_T("GPG_Key_Auto_Exchange:0"), _T("Indicates that gpg installed and configured to public key auto exchange (currently implemented in new_gpg Miranda IM plugin)")); + (*p)->getJabberInterface()->Net()->AddFeatures(_T("GPG_Key_Auto_Exchange:0\0\0")); + } } } @@ -951,4 +955,4 @@ string get_random(int length) for(int i = 0; i < length; ++i) data += chars[gen()]; return data; -} \ No newline at end of file +} -- cgit v1.2.3