summaryrefslogtreecommitdiff
path: root/utilities.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-10-27 18:31:17 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-10-27 18:31:17 +0300
commit69c525336f25083947d9f246de16fb83f73ce9d8 (patch)
tree8d051cbb06adce004173d1b3a69377b483c1c401 /utilities.cpp
parent1f4c1f489f05bb135c8df93d40db9bb624be969d (diff)
working on autoexchange, reworking prescense, other fings, trying to avoid db usage, using memory for temporary data instead
Diffstat (limited to 'utilities.cpp')
-rw-r--r--utilities.cpp10
1 files changed, 7 insertions, 3 deletions
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
+}