]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove Log() calls made unnecessary by the previous commit.
authorPeter Powell <petpow@saberuk.com>
Mon, 25 Jun 2018 14:21:37 +0000 (15:21 +0100)
committerPeter Powell <petpow@saberuk.com>
Fri, 20 Jul 2018 11:34:24 +0000 (12:34 +0100)
src/coremods/core_oper/cmd_kill.cpp
src/coremods/core_oper/cmd_oper.cpp
src/users.cpp

index 20bbe5a2632fe80a66a351aa73470e6ff0d0273a..446b50c0b892e59a1c3b87b31db72dd3e45b92cb 100644 (file)
@@ -98,13 +98,6 @@ CmdResult CommandKill::Handle (const std::vector<std::string>& parameters, User
                        ServerInstance->SNO->WriteToSnoMask('K', "Remote kill by %s: %s (%s)", user->nick.c_str(), target->GetFullRealHost().c_str(), parameters[1].c_str());
        }
 
-       if (IS_LOCAL(user) || IS_LOCAL(target))
-               ServerInstance->Logs->Log("KILL", LOG_DEFAULT, "%s KILL: %s :%s!%s!%s (%s)",
-                               IS_LOCAL(user) && IS_LOCAL(target) ? "LOCAL" : "REMOTE",
-                               target->nick.c_str(),
-                               ServerInstance->Config->ServerName.c_str(), user->GetDisplayedHost().c_str(), user->nick.c_str(),
-                               parameters[1].c_str());
-
        if (IS_LOCAL(target))
        {
                target->Write(":%s KILL %s :%s",
index 0322a059af0ea9da735c7d3a3d73ba093c75f466..e65ed9752429536c26ef51f02b00823aa2d7c35a 100644 (file)
@@ -67,6 +67,5 @@ CmdResult CommandOper::HandleLocal(const std::vector<std::string>& parameters, L
        user->CommandFloodPenalty += 10000;
 
        ServerInstance->SNO->WriteGlobalSno('o', "WARNING! Failed oper attempt by %s using login '%s': The following fields do not match: %s", user->GetFullRealHost().c_str(), parameters[0].c_str(), fields.c_str());
-       ServerInstance->Logs->Log("OPER", LOG_DEFAULT, "OPER: Failed oper attempt by %s using login '%s': The following fields did not match: %s", user->GetFullRealHost().c_str(), parameters[0].c_str(), fields.c_str());
        return CMD_FAILURE;
 }
index aa5100ce732f7d47cf00f18ed6d4dc8d7920587e..7a34b31b174fe69454e5e6d5172934cc7da14478 100644 (file)
@@ -375,7 +375,6 @@ void User::Oper(OperInfo* info)
                nick.c_str(), ident.c_str(), GetRealHost().c_str(), oper->name.c_str(), opername.c_str());
        this->WriteNumeric(RPL_YOUAREOPER, InspIRCd::Format("You are now %s %s", strchr("aeiouAEIOU", oper->name[0]) ? "an" : "a", oper->name.c_str()));
 
-       ServerInstance->Logs->Log("OPER", LOG_DEFAULT, "%s opered as type: %s", GetFullRealHost().c_str(), oper->name.c_str());
        ServerInstance->Users->all_opers.push_back(this);
 
        // Expand permissions from config for faster lookup