diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 19:28:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 19:28:22 +0000 |
commit | e1efa862f373aacefa027f346c0976f802818727 (patch) | |
tree | 2fc86b62ff306f219c36af763bcc587c43baced7 /src/inspircd.cpp | |
parent | 7fe5347210730622badcb6ed32d90114bd8cbeb4 (diff) |
Not yet tested: remove last vestiges of modules[] and module_names[] arrays.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8514 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 1f46fa875..e5e9ad5b3 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -103,11 +103,13 @@ void InspIRCd::Cleanup() if (MyModCount) { /* Unload all modules, so they get a chance to clean up their listeners */ - for (int j = 0; j <= MyModCount; j++) + /*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()); + */ } } @@ -715,18 +717,13 @@ int main(int argc, char ** argv) */ bool InspIRCd::AllModulesReportReady(User* user) { - if (!Config->global_implementation[I_OnCheckReady]) - return true; - - for (int i = 0; i <= this->Modules->GetCount(); i++) + for (EventHandlerIter i = Modules->EventHandlers[I_OnCheckReady].begin(); i != Modules->EventHandlers[I_OnCheckReady].end(); ++i) { - if (Config->implement_lists[i][I_OnCheckReady]) - { - int res = this->Modules->modules[i]->OnCheckReady(user); - if (!res) - return false; - } + int res = (*i)->OnCheckReady(user); + if (!res) + return false; } + return true; } |