diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-01-05 14:17:12 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-01-05 14:17:12 +0100 |
commit | d736eba00b274c87662bd73a3acf8288135643d6 (patch) | |
tree | 7a23e24f95e6f5b26610d83957a4198bf5f16ed0 /src/xline.cpp | |
parent | a500ec70bb82151c8fcf7443b4645640233952e8 (diff) |
Improve UserManager::QuitUser() and related code
- Make operreason optional; NULL means same as quitreason
- Remove User::quietquit, it is now handled internally in spanningtree
- Send snotice about quitting remote users from spanningtree
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index bc8e596bd..63a64d6b9 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -537,7 +537,7 @@ void XLine::DefaultApply(User* u, const std::string &line, bool bancache) u->WriteNotice("*** " + ServerInstance->Config->XLineMessage); if (ServerInstance->Config->HideBans) - ServerInstance->Users->QuitUser(u, line + "-Lined", banReason.c_str()); + ServerInstance->Users->QuitUser(u, line + "-Lined", &banReason); else ServerInstance->Users->QuitUser(u, banReason); @@ -545,7 +545,7 @@ void XLine::DefaultApply(User* u, const std::string &line, bool bancache) if (bancache) { ServerInstance->Logs->Log("BANCACHE", LOG_DEBUG, "BanCache: Adding positive hit (" + line + ") for " + u->GetIPString()); - ServerInstance->BanCache->AddHit(u->GetIPString(), this->type, line + "-Lined: " + this->reason, this->duration); + ServerInstance->BanCache->AddHit(u->GetIPString(), this->type, banReason, this->duration); } } |