From 3a6bcf5ef8bb65cf59ba4f0eebcb013842bf8ff7 Mon Sep 17 00:00:00 2001 From: Phenom Date: Tue, 18 Jul 2017 16:34:56 +0200 Subject: [PATCH] Add flag for ChatServer append the following assignation to qmake command line "CONFIG +=rs_chatserver" --- libretroshare/src/pqi/p3peermgr.cc | 4 ++++ retroshare.pri | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/libretroshare/src/pqi/p3peermgr.cc b/libretroshare/src/pqi/p3peermgr.cc index f224465a5..993e1b137 100644 --- a/libretroshare/src/pqi/p3peermgr.cc +++ b/libretroshare/src/pqi/p3peermgr.cc @@ -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); diff --git a/retroshare.pri b/retroshare.pri index 6f45693b3..e21307fd0 100644 --- a/retroshare.pri +++ b/retroshare.pri @@ -219,3 +219,7 @@ rs_gxs_trans { rs_async_chat { DEFINES *= RS_ASYNC_CHAT } + +rs_chatserver { + DEFINES *= RS_CHATSERVER +}