mirror of
https://github.com/anope/anope.git
synced 2026-06-26 13:16:38 +02:00
Move loadModule() and unloadModule() inside ModuleManager::
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1614 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-6
@@ -21,7 +21,6 @@
|
||||
Module::Module(const std::string &mname, const std::string &creator)
|
||||
{
|
||||
this->name = mname; /* Our name */
|
||||
this->filename = NULL;
|
||||
this->nickHelp = NULL;
|
||||
this->chanHelp = NULL;
|
||||
this->memoHelp = NULL;
|
||||
@@ -46,11 +45,7 @@ Module::~Module()
|
||||
for (i = 0; i < NUM_LANGS; i++)
|
||||
moduleDeleteLanguage(i);
|
||||
|
||||
if (this->filename)
|
||||
{
|
||||
remove(this->filename);
|
||||
free(this->filename);
|
||||
}
|
||||
remove(this->filename.c_str());
|
||||
|
||||
if (this->handle)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user