summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-10-08 11:37:09 -0400
committerAdam <Adam@anope.org>2017-10-08 11:37:09 -0400
commit20c7bcad55597f17c01089ae2ec0c458bafa705f (patch)
treeb23f8d20ed5caec167592debba920013aba23881 /src/init.cpp
parent85f10a20bb3f59afb0d97e42452f2aea60882551 (diff)
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
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 2 insertions, 0 deletions
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();
}