From 394414b7eb3eba8e1e7e429b6273c5a8f2e9dab9 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 16 Feb 2010 20:32:43 +0000 Subject: Defer module init on initial load for easier dependency checking git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12477 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index 10fc6ce80..bb50c417a 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1587,9 +1587,10 @@ class CoreExport ModuleManager /** Load a given module file * @param filename The file to load + * @param defer Defer module init (loading many modules) * @return True if the module was found and loaded */ - bool Load(const char* filename); + bool Load(const std::string& filename, bool defer = false); /** Unload a given module file. Note that the module will not be * completely gone until the cull list has finished processing. -- cgit v1.2.3