diff options
author | Peter Powell <petpow@saberuk.com> | 2018-11-07 10:58:42 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-11-07 11:20:10 +0000 |
commit | 77730fd5f09f8fc193205654c8bba84d34365670 (patch) | |
tree | 23877567a613e9520797bcbd923b7ae38632f616 /src/usermanager.cpp | |
parent | 79892a727e323dcc4bce7e9c0cf3c99c5fe61706 (diff) | |
parent | 0d9c5a22626282403b322c2a433d08c17633e507 (diff) |
Merge tag 'v2.0.27' into master.
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r-- | src/usermanager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 7466f385b..968d5db00 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -130,7 +130,11 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs ServerInstance->Logs->Log("BANCACHE", LOG_DEBUG, "BanCache: Positive hit for " + New->GetIPString()); if (!ServerInstance->Config->XLineMessage.empty()) New->WriteNumeric(ERR_YOUREBANNEDCREEP, ServerInstance->Config->XLineMessage); - this->QuitUser(New, b->Reason); + + if (ServerInstance->Config->HideBans) + this->QuitUser(New, b->Type + "-Lined", &b->Reason); + else + this->QuitUser(New, b->Reason); return; } else |