X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Ffreenet%2Fidentityintroductionrequester.cpp;h=843ed0ac2bbe1507185cc8ced14765036fcdd9ee;hp=65527704dfdbbcdc55362b11f2e214f0e0c3a69a;hb=278ee758050cb7772cd95946688c5b40104f4d8b;hpb=dabd19d7f764b8275c9c8370c7b89675b6a78243 diff --git a/src/freenet/identityintroductionrequester.cpp b/src/freenet/identityintroductionrequester.cpp index 6552770..843ed0a 100644 --- a/src/freenet/identityintroductionrequester.cpp +++ b/src/freenet/identityintroductionrequester.cpp @@ -181,17 +181,16 @@ const bool IdentityIntroductionRequester::HandleMessage(FCPMessage &message) void IdentityIntroductionRequester::Initialize() { - std::string tempval=""; - Option::Instance()->Get("MaxIdentityIntroductionRequests",tempval); - StringFunctions::Convert(tempval,m_maxrequests); + m_maxrequests=0; + Option::Instance()->GetInt("MaxIdentityIntroductionRequests",m_maxrequests); if(m_maxrequests<1) { m_maxrequests=1; - m_log->error("Option MaxIdentityIntroductionRequests is currently set at "+tempval+". It must be 1 or greater."); + m_log->error("Option MaxIdentityIntroductionRequests is currently less than 1. It must be 1 or greater."); } if(m_maxrequests>100) { - m_log->warning("Option MaxIdentityIntroductionRequests is currently set at "+tempval+". This value might be incorrectly configured."); + m_log->warning("Option MaxIdentityIntroductionRequests is currently set at more than 100. This value might be incorrectly configured."); } Option::Instance()->Get("MessageBase",m_messagebase); m_tempdate=Poco::Timestamp();