From f6e2ebe14581ce1ac38e3132846f79616f2a6535 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 28 May 2013 13:43:45 -0400 Subject: Fixup last commit. We have events in log's destructor so we cant log messages from it, and this check in modulemanager is bogus/has a typo --- src/modulemanager.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/modulemanager.cpp') diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index a3719b412..7f69c2edb 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -264,11 +264,7 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u) /* Attach module to all events */ for (std::map >::iterator it = EventHandlers.begin(); it != EventHandlers.end(); ++it) - /* Modules can already be attached here if loading them causes a new event to trigged, which initializes this vector - * to all known modules, which includes this one. - */ - if (std::find(it->second.begin(), it->second.end(), m) != it->second.end()) - it->second.push_back(m); + it->second.push_back(m); FOREACH_MOD(OnModuleLoad, (u, m)); -- cgit