Merge pull request #950 from PhenomRetroShare/Add_ChatServerFlag

Add flag for ChatServer
This commit is contained in:
csoler 2017-07-19 18:18:32 +02:00 committed by GitHub
commit 71810e8daa
2 changed files with 8 additions and 0 deletions

View File

@ -999,7 +999,11 @@ bool p3PeerMgrIMPL::addFriend(const RsPeerId& input_id, const RsPgpId& input_gpg
}
service_flags &= servicePermissionFlags(gpg_id) ; // Always reduce the permissions.
#ifdef RS_CHATSERVER //Defined by chatserver
setServicePermissionFlags(gpg_id,RS_NODE_PERM_NONE) ;
#else
setServicePermissionFlags(gpg_id,service_flags) ;
#endif
#ifdef PEER_DEBUG
printPeerLists(std::cerr);

View File

@ -219,3 +219,7 @@ rs_gxs_trans {
rs_async_chat {
DEFINES *= RS_ASYNC_CHAT
}
rs_chatserver {
DEFINES *= RS_CHATSERVER
}