From e1efa862f373aacefa027f346c0976f802818727 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Nov 2007 19:28:22 +0000 Subject: 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 --- src/modules.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 7bc9f94c4..29c185f1a 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -785,6 +785,15 @@ Module* ModuleManager::Find(const std::string &name) return modfind->second.second; } +const std::vector ModuleManager::GetAllModuleNames(int filter) +{ + std::vector retval; + for (std::map >::iterator x = Modules.begin(); x != Modules.end(); ++x) + if (!filter || (x->second.second->GetVersion().Flags & filter)) + retval.push_back(x->first); + return retval; +} + ConfigReader::ConfigReader(InspIRCd* Instance) : ServerInstance(Instance) { /* Is there any reason to load the entire config file again here? -- cgit v1.3.1-10-gc9f91