diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-20 00:40:14 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-20 00:40:14 +0000 |
commit | de7b668ad121c193cd874c8e56fa5704407315a9 (patch) | |
tree | 5de65134576afa755b1a902e101658ec3c6d6c43 /src/modulemanager.cpp | |
parent | 396cee7d0d008cfdbbb9eb5398e24f2f0df27912 (diff) |
Removed the file name arg from MODULE_INIT
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2510 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modulemanager.cpp')
-rw-r--r-- | src/modulemanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index ec8bf35d3..887820ead 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -137,7 +137,7 @@ TYPE function_cast(ano_module_t symbol) int ModuleManager::LoadModule(const std::string &modname, User * u) { const char *err; - Module *(*func)(const std::string &); + Module *(*func)(const std::string &, const std::string &); int ret = 0; if (modname.empty()) @@ -181,7 +181,7 @@ int ModuleManager::LoadModule(const std::string &modname, User * u) } ano_modclearerr(); - func = function_cast<Module *(*)(const std::string &)>(dlsym(handle, "init_module")); + func = function_cast<Module *(*)(const std::string &, const std::string &)>(dlsym(handle, "init_module")); if (func == NULL && (err = dlerror()) != NULL) { alog("No magical init function found, not an Anope module"); @@ -205,7 +205,7 @@ int ModuleManager::LoadModule(const std::string &modname, User * u) try { - m = func(nick); + m = func(modname, nick); } catch (ModuleException &ex) { |