From ee2dcf11b8ff6cad5af4895738f7fe17e3baa9ee Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 5 May 2013 02:49:32 -0400 Subject: Cache timeoutcheck and fix a typo in example.conf --- src/config.cpp | 1 + src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/config.cpp b/src/config.cpp index 38e072de8..96ed47917 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -187,6 +187,7 @@ Conf::Conf() : Block("") this->DefPrivmsg = std::find(defaults.begin(), defaults.end(), "msg") != defaults.end(); } this->DefLanguage = options->Get("defaultlanguage"); + this->TimeoutCheck = options->Get("timeoutcheck"); for (int i = 0; i < this->CountBlock("uplink"); ++i) { diff --git a/src/main.cpp b/src/main.cpp index 12fc1335c..99174279b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -157,7 +157,7 @@ int main(int ac, char **av, char **envp) Log(LOG_DEBUG_2) << "Top of main loop"; /* Process timers */ - if (Anope::CurTime - last_check >= Config->GetBlock("options")->Get("timeoutcheck")) + if (Anope::CurTime - last_check >= Config->TimeoutCheck) { TimerManager::TickTimers(Anope::CurTime); last_check = Anope::CurTime; -- cgit