From 65fd49d3628dd8d3bde8f70b58ac458785a261d7 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Sun, 9 Nov 2008 16:56:54 +0000 Subject: Move loadModule() and unloadModule() inside ModuleManager:: git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1614 5417fbe8-f217-4b02-8779-1006273d7864 --- src/module.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/module.cpp') diff --git a/src/module.cpp b/src/module.cpp index 422d1a643..3f9aabaed 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -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) { -- cgit