From 20c7bcad55597f17c01089ae2ec0c458bafa705f Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 8 Oct 2017 11:37:09 -0400 Subject: Simplify initial burst of persistent channels Also don't create/destroy channels as persist is set on and off which no longer makes since with the live database backend --- src/init.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index aed6b8a24..98b753eb4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -594,6 +594,8 @@ void Anope::Init(int ac, char **av) EventManager::Get()->Dispatch(&Event::LoadDatabase::OnLoadDatabase);; Anope::Logger.Log("Databases loaded"); + EventManager::Get()->Dispatch(&Event::PostInit::OnPostInit); + for (channel_map::const_iterator it = ChannelList.begin(), it_end = ChannelList.end(); it != it_end; ++it) it->second->Sync(); } -- cgit