X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Ffreenet%2Ffreenetmasterthread.cpp;h=57541a4207914da5c12a911bb6baebd9516a17ce;hp=9c75a06f0e62bb6881c4074278c24a227b78212d;hb=HEAD;hpb=9ae3b1434e51788e6feb72e1415ec800d05c535a diff --git a/src/freenet/freenetmasterthread.cpp b/src/freenet/freenetmasterthread.cpp index 9c75a06..57541a4 100644 --- a/src/freenet/freenetmasterthread.cpp +++ b/src/freenet/freenetmasterthread.cpp @@ -21,6 +21,9 @@ #include "../../include/freenet/siteinserter.h" #include "../../include/freenet/fileinserter.h" #include "../../include/freenet/fmsversionrequester.h" +#ifdef FROST_SUPPORT + #include "../../include/freenet/frostmessagerequester.h" +#endif #include #include @@ -271,6 +274,7 @@ void FreenetMasterThread::run() void FreenetMasterThread::Setup() { + std::string temp=""; Option option(m_db); if(option.Get("FCPHost",m_fcphost)==false) { @@ -314,6 +318,14 @@ void FreenetMasterThread::Setup() m_registrables.push_back(new SiteInserter(m_db,&m_fcp)); m_registrables.push_back(new FileInserter(m_db,&m_fcp)); m_registrables.push_back(new FMSVersionRequester(m_db,&m_fcp)); +#ifdef FROST_SUPPORT + temp=""; + option.Get("DownloadFrostMessages",temp); + if(temp=="true") + { + m_registrables.push_back(new FrostMessageRequester(m_db,&m_fcp)); + } +#endif for(std::vector::iterator i=m_registrables.begin(); i!=m_registrables.end(); i++) {