diff options
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/modules.h b/include/modules.h index 0aee1d758..7b179b20b 100644 --- a/include/modules.h +++ b/include/modules.h @@ -140,8 +140,8 @@ CoreExport class Module char *filename; void *handle; time_t time; - char *version; - char *author; + std::string version; + std::string author; MODType type; @@ -170,6 +170,16 @@ CoreExport class Module */ void SetType(MODType type); + /** Set the modules version info. + * @param version the version of the module + */ + void SetVersion(const std::string &version); + + /** Set the modules author info + * @param author the author of the module + */ + void SetAuthor(const std::string &author); + /** * Allow a module to add a set of language strings to anope * @param langNumber the language number for the strings @@ -311,8 +321,6 @@ int encryption_module_init(void); /* Load the encryption module */ int protocol_module_init(void); /* Load the IRCD Protocol Module up*/ int unloadModule(Module *m, User *u); /* Unload the given module from the pro */ int prepForUnload(Module *m); /* Prepare the module for unload */ -MDE void moduleAddVersion(const char *version); -MDE void moduleAddAuthor(const char *author); void modules_init(void); void modules_delayed_init(void); void moduleCallBackPrepForUnload(const char *mod_name); |