version 0.0.2
[fms.git] / src / freenet / introductionpuzzleinserter.cpp
index f87e2bd..ea78ace 100644 (file)
@@ -112,6 +112,12 @@ const bool IntroductionPuzzleInserter::HandlePutFailed(FCPMessage &message)
        st.Step();\r
        st.Finalize();\r
 \r
+       // if fatal error or collision - mark index\r
+       if(message["Fatal"]=="true" || message["Code"]=="9")\r
+       {\r
+               m_db->Execute("UPDATE tblIntroductionPuzzleInserts SET Day='"+idparts[5]+"', InsertIndex="+idparts[2]+", FoundSolution='true' WHERE UUID='"+idparts[3]+"';");\r
+       }\r
+\r
        m_log->WriteLog(LogFile::LOGLEVEL_DEBUG,__FUNCTION__" failed to insert puzzle "+idparts[3]);\r
 \r
        return true;\r