diff options
author | Adam <Adam@anope.org> | 2017-10-08 11:37:09 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-10-08 11:37:09 -0400 |
commit | 20c7bcad55597f17c01089ae2ec0c458bafa705f (patch) | |
tree | b23f8d20ed5caec167592debba920013aba23881 /include | |
parent | 85f10a20bb3f59afb0d97e42452f2aea60882551 (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 'include')
-rw-r--r-- | include/event.h | 11 |
1 files changed, 11 insertions, 0 deletions
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"; |