Add flag for ChatServer

append the following assignation to qmake command line "CONFIG
+=rs_chatserver"
This commit is contained in:
Phenom 2017-07-18 16:34:56 +02:00
parent e56340e0a1
commit 3a6bcf5ef8
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
}