summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-25 03:16:57 -0400
committerAdam <Adam@anope.org>2011-05-16 04:07:56 -0400
commit076ebafa1b4cc935c466c615b94eaac415af9a67 (patch)
treedbc8b0f9e7b6f954569c13ad35598f5ebe8a081d /include/modules.h
parent6922bd239c778e8f6f2081476ce20b9426c515ad (diff)
Moved some global functions to be member functions and misc cleanup
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index badb59616..b03fca8b1 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -129,7 +129,6 @@ class Message;
extern CoreExport Module *FindModule(const Anope::string &name);
int protocol_module_init();
-extern CoreExport bool moduleMinVersion(int major, int minor, int patch, int build);
enum ModuleReturn
{
@@ -1125,6 +1124,10 @@ class CoreExport ModuleManager
*/
static std::vector<Module *> EventHandlers[I_END];
+ /** Clean up the module runtime directory
+ */
+ static void CleanupRuntimeDirectory();
+
/** Load up a list of modules.
* @param module_list The list of modules to load
**/
@@ -1144,6 +1147,15 @@ class CoreExport ModuleManager
*/
static ModuleReturn UnloadModule(Module *m, User * u);
+ /** Checks whether this version of Anope is at least major.minor.patch.build
+ * Throws a ModuleException if not
+ * @param major The major version
+ * @param minor The minor vesion
+ * @param patch The patch version
+ * @param build The build version
+ */
+ static void RequireVersion(int major, int minor, int patch, int build);
+
/** Change the priority of one event in a module.
* Each module event has a list of modules which are attached to that event type. If you wish to be called before or after other specific modules, you may use this
* method (usually within void Module::Prioritize()) to set your events priority. You may use this call in other methods too, however, this is not supported behaviour