diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 20:19:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 20:19:25 +0000 |
commit | c930256639e1bab55cb3a9ae2965647f2f6b9ec2 (patch) | |
tree | 0edc22cca50667a88f577087ba2c99498791d886 /src/inspircd.cpp | |
parent | d2858a7fef3b79075ee59b68b3d4c2ebcd4900c4 (diff) |
Fix the two FIXMEs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8521 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index e5e9ad5b3..5b21f197c 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -70,9 +70,6 @@ const char* ExitCodes[] = void InspIRCd::Cleanup() { - std::vector<std::string> mymodnames; - int MyModCount = this->Modules->GetCount(); - if (Config) { for (unsigned int i = 0; i < Config->ports.size(); i++) @@ -97,21 +94,12 @@ void InspIRCd::Cleanup() */ for (int tries = 0; tries < 3; tries++) { - MyModCount = this->Modules->GetCount(); - mymodnames.clear(); - - if (MyModCount) + std::vector<std::string> module_names = Modules->GetAllModuleNames(0); + for (std::vector<std::string>::iterator k = module_names.begin(); k != module_names.end(); ++k) { /* Unload all modules, so they get a chance to clean up their listeners */ - /*XXX FIXME - * for (int j = 0; j <= MyModCount; j++) - mymodnames.push_back(Config->module_names[j]); - - for (int k = 0; k <= MyModCount; k++) - this->Modules->Unload(mymodnames[k].c_str()); - */ + this->Modules->Unload(k->c_str()); } - } /* Close logging */ |