X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Ffreenet%2Fidentityintroductioninserter.cpp;fp=src%2Ffreenet%2Fidentityintroductioninserter.cpp;h=5d01882c34676502c5c3dbf28386d33ac9369ae1;hp=78a0f9334711c3ef683b62e0d466871e387cab30;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hpb=4e96d123460d6363cf7274e36bd9357768eb86ad diff --git a/src/freenet/identityintroductioninserter.cpp b/src/freenet/identityintroductioninserter.cpp index 78a0f93..5d01882 100644 --- a/src/freenet/identityintroductioninserter.cpp +++ b/src/freenet/identityintroductioninserter.cpp @@ -10,12 +10,12 @@ #include #endif -IdentityIntroductionInserter::IdentityIntroductionInserter() +IdentityIntroductionInserter::IdentityIntroductionInserter(SQLite3DB::DB *db):IDatabase(db) { Initialize(); } -IdentityIntroductionInserter::IdentityIntroductionInserter(FCPv2::Connection *fcp):IFCPConnected(fcp) +IdentityIntroductionInserter::IdentityIntroductionInserter(SQLite3DB::DB *db, FCPv2::Connection *fcp):IDatabase(db),IFCPConnected(fcp) { Initialize(); } @@ -91,7 +91,8 @@ const bool IdentityIntroductionInserter::HandleMessage(FCPv2::Message &message) void IdentityIntroductionInserter::Initialize() { m_inserting=false; - Option::Instance()->Get("MessageBase",m_messagebase); + Option option(m_db); + option.Get("MessageBase",m_messagebase); } void IdentityIntroductionInserter::Process()