version 0.2.14
[fms.git] / src / freenet / introductionpuzzleinserter.cpp
index 66635bb..9bb4da8 100644 (file)
@@ -22,8 +22,8 @@ IntroductionPuzzleInserter::IntroductionPuzzleInserter(FCPv2 *fcp):IFCPConnected
 \r
 void IntroductionPuzzleInserter::CheckForNeededInsert()\r
 {\r
-       // select all local ids that aren't single use and that aren't currently inserting a puzzle\r
-       SQLite3DB::Recordset rs=m_db->Query("SELECT LocalIdentityID FROM tblLocalIdentity WHERE SingleUse='false' AND InsertingPuzzle='false' AND PrivateKey IS NOT NULL AND PrivateKey <> '' ORDER BY LastInsertedPuzzle;");\r
+       // select all local ids that aren't single use and that aren't currently inserting a puzzle and are publishing a trust list\r
+       SQLite3DB::Recordset rs=m_db->Query("SELECT LocalIdentityID FROM tblLocalIdentity WHERE PublishTrustList='true' AND SingleUse='false' AND InsertingPuzzle='false' AND PrivateKey IS NOT NULL AND PrivateKey <> '' ORDER BY LastInsertedPuzzle;");\r
        \r
        while(!rs.AtEnd())\r
        {\r