From: Peter Powell Date: Mon, 25 Jun 2018 14:21:37 +0000 (+0100) Subject: Remove Log() calls made unnecessary by the previous commit. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=6522f7e3e784b6881a9226b9dd666d8eac5d4174;p=user%2Fhenk%2Fcode%2Finspircd.git Remove Log() calls made unnecessary by the previous commit. --- diff --git a/src/coremods/core_oper/cmd_kill.cpp b/src/coremods/core_oper/cmd_kill.cpp index 20bbe5a26..446b50c0b 100644 --- a/src/coremods/core_oper/cmd_kill.cpp +++ b/src/coremods/core_oper/cmd_kill.cpp @@ -98,13 +98,6 @@ CmdResult CommandKill::Handle (const std::vector& 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", diff --git a/src/coremods/core_oper/cmd_oper.cpp b/src/coremods/core_oper/cmd_oper.cpp index 0322a059a..e65ed9752 100644 --- a/src/coremods/core_oper/cmd_oper.cpp +++ b/src/coremods/core_oper/cmd_oper.cpp @@ -67,6 +67,5 @@ CmdResult CommandOper::HandleLocal(const std::vector& 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; } diff --git a/src/users.cpp b/src/users.cpp index aa5100ce7..7a34b31b1 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -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