1
0
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:
Robin Burchell w00t@inspircd.org
2008-11-09 16:56:54 +00:00
parent cd71f37e2d
commit 65fd49d362
6 changed files with 294 additions and 307 deletions
+1 -6
View File
@@ -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)
{