X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnntp%2Fnntpconnection.cpp;fp=src%2Fnntp%2Fnntpconnection.cpp;h=99914cd3cea7694b093d0439ed3dfbde66917cfa;hb=1230cc420c955e75051d011d964bc68f061ba08c;hp=54d7c9417a463eb5af33d673b47ab5c1e3736f19;hpb=6836fbb5db8464f56e682989996b2210b14231d0;p=fms.git diff --git a/src/nntp/nntpconnection.cpp b/src/nntp/nntpconnection.cpp index 54d7c94..99914cd 100644 --- a/src/nntp/nntpconnection.cpp +++ b/src/nntp/nntpconnection.cpp @@ -259,7 +259,7 @@ const bool NNTPConnection::HandleGetTrustCommand(const NNTPCommand &command) { std::string type=command.m_arguments[0]; StringFunctions::UpperCase(type,type); - if(type=="MESSAGE" || type=="TRUSTLIST") + if(type=="MESSAGE" || type=="TRUSTLIST" || type=="PEERMESSAGE" || type=="PEERTRUSTLIST") { if(m_status.m_authenticated) { @@ -280,13 +280,27 @@ const bool NNTPConnection::HandleGetTrustCommand(const NNTPCommand &command) found=true; } } - if(type=="TRUSTLIST") + else if(type=="TRUSTLIST") { if(tr.GetTrustListTrust(nntpname,trust)) { found=true; } } + else if(type=="PEERMESSAGE") + { + if(tr.GetPeerMessageTrust(nntpname,trust)) + { + found=true; + } + } + else if(type=="PEERTRUSTLIST") + { + if(tr.GetPeerTrustListTrust(nntpname,trust)) + { + found=true; + } + } if(trust>=0 && found) {