X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Ffreenet%2Fidentityrequester.cpp;h=9e055e0e23c144d90ecd8d7bcf2f711d5915b8ea;hp=3375f1d0ef7edc759c8056394a03f47cb0daf697;hb=278ee758050cb7772cd95946688c5b40104f4d8b;hpb=dabd19d7f764b8275c9c8370c7b89675b6a78243 diff --git a/src/freenet/identityrequester.cpp b/src/freenet/identityrequester.cpp index 3375f1d..9e055e0 100644 --- a/src/freenet/identityrequester.cpp +++ b/src/freenet/identityrequester.cpp @@ -166,18 +166,16 @@ const bool IdentityRequester::HandleGetFailed(FCPMessage &message) void IdentityRequester::Initialize() { - std::string tempval=""; m_fcpuniquename="IdentityRequester"; - Option::Instance()->Get("MaxIdentityRequests",tempval); - StringFunctions::Convert(tempval,m_maxrequests); + Option::Instance()->GetInt("MaxIdentityRequests",m_maxrequests); if(m_maxrequests<1) { m_maxrequests=1; - m_log->error("Option MaxIdentityRequests is currently set at "+tempval+". It must be 1 or greater."); + m_log->error("Option MaxIdentityRequests is currently set at less than 1. It must be 1 or greater."); } if(m_maxrequests>100) { - m_log->warning("Option MaxIdentityRequests is currently set at "+tempval+". This value might be incorrectly configured."); + m_log->warning("Option MaxIdentityRequests is currently set at more than 100. This value might be incorrectly configured."); } }