version 0.3.33
[fms.git] / src / freenet / freenetmasterthread.cpp
index 9c75a06..57541a4 100644 (file)
@@ -21,6 +21,9 @@
 #include "../../include/freenet/siteinserter.h"\r
 #include "../../include/freenet/fileinserter.h"\r
 #include "../../include/freenet/fmsversionrequester.h"\r
+#ifdef FROST_SUPPORT\r
+       #include "../../include/freenet/frostmessagerequester.h"\r
+#endif\r
 \r
 #include <Poco/UUID.h>\r
 #include <Poco/UUIDGenerator.h>\r
@@ -271,6 +274,7 @@ void FreenetMasterThread::run()
 void FreenetMasterThread::Setup()\r
 {\r
 \r
+       std::string temp="";\r
        Option option(m_db);\r
        if(option.Get("FCPHost",m_fcphost)==false)\r
        {\r
@@ -314,6 +318,14 @@ void FreenetMasterThread::Setup()
        m_registrables.push_back(new SiteInserter(m_db,&m_fcp));\r
        m_registrables.push_back(new FileInserter(m_db,&m_fcp));\r
        m_registrables.push_back(new FMSVersionRequester(m_db,&m_fcp));\r
+#ifdef FROST_SUPPORT\r
+       temp="";\r
+       option.Get("DownloadFrostMessages",temp);\r
+       if(temp=="true")\r
+       {\r
+               m_registrables.push_back(new FrostMessageRequester(m_db,&m_fcp));\r
+       }\r
+#endif\r
 \r
        for(std::vector<IFreenetRegistrable *>::iterator i=m_registrables.begin(); i!=m_registrables.end(); i++)\r
        {\r