summaryrefslogtreecommitdiff
path: root/src/module.cpp
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-09 16:56:54 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-09 16:56:54 +0000
commit65fd49d3628dd8d3bde8f70b58ac458785a261d7 (patch)
tree0b6148ca77f747d4ef2732e5c004292868fd9bf3 /src/module.cpp
parentcd71f37e2d1361498c516715e4b83d5909422327 (diff)
Move loadModule() and unloadModule() inside ModuleManager::
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1614 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/module.cpp')
-rw-r--r--src/module.cpp7
1 files changed, 1 insertions, 6 deletions
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)
{