summaryrefslogtreecommitdiff
path: root/utilities.cpp
diff options
context:
space:
mode:
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
+}