version 0.2.18
[fms.git] / src / nntp / nntpconnection.cpp
index 54d7c94..99914cd 100644 (file)
@@ -259,7 +259,7 @@ const bool NNTPConnection::HandleGetTrustCommand(const NNTPCommand &command)
        {\r
                std::string type=command.m_arguments[0];\r
                StringFunctions::UpperCase(type,type);\r
-               if(type=="MESSAGE" || type=="TRUSTLIST")\r
+               if(type=="MESSAGE" || type=="TRUSTLIST" || type=="PEERMESSAGE" || type=="PEERTRUSTLIST")\r
                {\r
                        if(m_status.m_authenticated)\r
                        {\r
@@ -280,13 +280,27 @@ const bool NNTPConnection::HandleGetTrustCommand(const NNTPCommand &command)
                                                found=true;\r
                                        }\r
                                }\r
-                               if(type=="TRUSTLIST")\r
+                               else if(type=="TRUSTLIST")\r
                                {\r
                                        if(tr.GetTrustListTrust(nntpname,trust))\r
                                        {\r
                                                found=true;\r
                                        }\r
                                }\r
+                               else if(type=="PEERMESSAGE")\r
+                               {\r
+                                       if(tr.GetPeerMessageTrust(nntpname,trust))\r
+                                       {\r
+                                               found=true;\r
+                                       }\r
+                               }\r
+                               else if(type=="PEERTRUSTLIST")\r
+                               {\r
+                                       if(tr.GetPeerTrustListTrust(nntpname,trust))\r
+                                       {\r
+                                               found=true;\r
+                                       }\r
+                               }\r
 \r
                                if(trust>=0 && found)\r
                                {\r