From 9e9d024c29bc49f5e9045bd72d3db250773052c4 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Tue, 19 Jul 2011 17:11:14 -0400 Subject: Remove harmless but scary-looking logfile lines --- src/mode.cpp | 2 -- src/modules.cpp | 5 ----- 2 files changed, 7 deletions(-) (limited to 'src') diff --git a/src/mode.cpp b/src/mode.cpp index a3f8ab6fe..873609d25 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -61,8 +61,6 @@ CullResult ModeHandler::cull() ModeHandler::~ModeHandler() { - if (ServerInstance && ServerInstance->Modes && ServerInstance->Modes->FindMode(mode, m_type) == this) - ServerInstance->Logs->Log("MODE", DEFAULT, "ERROR: Destructor for mode %c called while still registered", mode); } bool ModeHandler::IsListMode() diff --git a/src/modules.cpp b/src/modules.cpp index 8af5b95e3..600b4b0aa 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -174,9 +174,6 @@ ModuleManager::~ModuleManager() bool ModuleManager::Attach(Implementation i, Module* mod) { - if (Modules.find(mod->ModuleSourceFile) == Modules.end()) - ServerInstance->Logs->Log("MODULE", DEFAULT, "Module is attaching to hook %d in constructor; this does not handle exceptions correctly!", i); - if (std::find(EventHandlers[i].begin(), EventHandlers[i].end(), mod) != EventHandlers[i].end()) return false; @@ -427,8 +424,6 @@ bool InspIRCd::IsValidModuleCommand(const std::string &commandname, int pcnt, Us void ModuleManager::AddService(ServiceProvider& item) { Module* owner = item.creator; - if (Modules.find(owner->ModuleSourceFile) == Modules.end()) - ServerInstance->Logs->Log("MODULE", DEFAULT, "Module is registering item %s in constructor; this does not handle exceptions correctly!", item.name.c_str()); switch (item.service) { -- cgit v1.2.3