diff options
author | Peter Powell <petpow@saberuk.com> | 2018-06-25 15:21:37 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-07-20 12:34:24 +0100 |
commit | 6522f7e3e784b6881a9226b9dd666d8eac5d4174 (patch) | |
tree | c2ab47ebd96fc1368f8bd7b610f9550dde12a3be | |
parent | 8faa6ac77378e39de2dbca64a2c54a484db8f77d (diff) |
Remove Log() calls made unnecessary by the previous commit.
-rw-r--r-- | src/coremods/core_oper/cmd_kill.cpp | 7 | ||||
-rw-r--r-- | src/coremods/core_oper/cmd_oper.cpp | 1 | ||||
-rw-r--r-- | src/users.cpp | 1 |
3 files changed, 0 insertions, 9 deletions
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<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", 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<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; } 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 |