]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove harmless but scary-looking logfile lines
authorDaniel De Graaf <danieldg@inspircd.org>
Tue, 19 Jul 2011 21:11:14 +0000 (17:11 -0400)
committerDaniel De Graaf <danieldg@inspircd.org>
Tue, 19 Jul 2011 21:11:42 +0000 (17:11 -0400)
src/mode.cpp
src/modules.cpp

index a3f8ab6fee307a52013d51607fb20e623a4bd948..873609d259d363e081b8541ccd57ba1e9c7c2ecb 100644 (file)
@@ -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()
index 8af5b95e33e1153d9b298ae212de4f19fc78b1d6..600b4b0aa1982304766a073d21b4474a7ec70c07 100644 (file)
@@ -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)
        {