summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-16 20:32:43 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-16 20:32:43 +0000
commit394414b7eb3eba8e1e7e429b6273c5a8f2e9dab9 (patch)
tree74979d917c19a1e443b7e254dd2d58805c022f3e /include/modules.h
parent0c1dff8c8d87a246adb93c835bd9f29e37c2b1ea (diff)
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
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h3
1 files changed, 2 insertions, 1 deletions
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.