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 --- include/event.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/event.h b/include/event.h index c95544790..985eb6ef7 100644 --- a/include/event.h +++ b/include/event.h @@ -154,6 +154,17 @@ class EventManager namespace Event { + struct CoreExport PostInit : Events + { + static constexpr const char *NAME = "postinit"; + + using Events::Events; + + /** Called after initialization but before connect + */ + virtual void OnPostInit() anope_abstract; + }; + struct CoreExport PreUserKicked : Events { static constexpr const char *NAME = "preuserkicked"; -- cgit