don't send an empty gpg key in p3disc

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2100 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-01-20 21:41:21 +00:00
parent 28a1244a1b
commit 074671af29

View File

@ -367,7 +367,11 @@ void p3disc::sendPeerDetails(std::string to, std::string about) {
#endif #endif
return; return;
} }
di -> certGPG = AuthGPG::getAuthGPG()->SaveCertificateToString(about); std::string cert = AuthGPG::getAuthGPG()->SaveCertificateToString(about);
if (cert == "") {
cert = "No Key";
}
di -> certGPG = cert;
// Send off message // Send off message
#ifdef P3DISC_DEBUG #ifdef P3DISC_DEBUG