solve a bug with dummy friends

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2029 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-01-13 21:35:27 +00:00
parent 38df8b54a6
commit 3863b8c173

View File

@ -626,6 +626,8 @@ bool p3Peers::isDummyFriend(std::string ssl_id) {
bool ret = false;
if (getPeerDetails(ssl_id, details)) {
ret = (details.id == ("dummy" + details.gpg_id));
} else {
ret = (ssl_id.substr(0,5) == "dummy");
}
#ifdef P3PEERS_DEBUG
std::cerr << "p3Peers::isDummyFriend() return : " << ret << std::endl;