diff options
-rw-r--r-- | data/anope.example.conf | 2 | ||||
-rw-r--r-- | modules/database/db_sql_live.cpp | 2 | ||||
-rw-r--r-- | src/main.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/data/anope.example.conf b/data/anope.example.conf index abf51dabb..936c00d18 100644 --- a/data/anope.example.conf +++ b/data/anope.example.conf @@ -402,7 +402,7 @@ options /* * Sets the delay between automatic database updates. */ - updatetimeout = 5m + updatetimeout = 2m /* * Sets the delay between checks for expired nicknames and channels. diff --git a/modules/database/db_sql_live.cpp b/modules/database/db_sql_live.cpp index 839126d41..ea1fb1a27 100644 --- a/modules/database/db_sql_live.cpp +++ b/modules/database/db_sql_live.cpp @@ -37,7 +37,7 @@ private: } else { - if (Anope::CurTime - Config->GetBlock("options")->Get<time_t>("updatetimeout", "5m") > lastwarn) + if (Anope::CurTime - Config->GetBlock("options")->Get<time_t>("updatetimeout", "2m") > lastwarn) { Log() << "Unable to locate SQL reference, going to readonly..."; Anope::ReadOnly = this->ro = true; diff --git a/src/main.cpp b/src/main.cpp index 498378c43..7a18a26d1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -167,7 +167,7 @@ int main(int ac, char **av, char **envp) /* Set up timers */ time_t last_check = Anope::CurTime; - UpdateTimer updateTimer(Config->GetBlock("options")->Get<time_t>("updatetimeout", "5m")); + UpdateTimer updateTimer(Config->GetBlock("options")->Get<time_t>("updatetimeout", "2m")); ExpireTimer expireTimer(Config->GetBlock("options")->Get<time_t>("expiretimeout", "30m")); /*** Main loop. ***/ |