From: Peter Powell Date: Wed, 26 Sep 2018 22:53:29 +0000 (+0100) Subject: Fix exposing the ban reason when an xline is found in the bancache. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=39ddf2fb7a4d030fc29a7d421e09394cd70dc9bf;hp=3f0a66ce0636726c5b16c291f59e59f6ae7edaf7;p=user%2Fhenk%2Fcode%2Finspircd.git Fix exposing the ban reason when an xline is found in the bancache. --- diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 2cb7ad511..f62d28faa 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -117,7 +117,11 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs ServerInstance->Logs->Log("BANCACHE", DEBUG, std::string("BanCache: Positive hit for ") + New->GetIPString()); if (!ServerInstance->Config->MoronBanner.empty()) New->WriteServ("NOTICE %s :*** %s", New->nick.c_str(), ServerInstance->Config->MoronBanner.c_str()); - this->QuitUser(New, b->Reason); + + if (ServerInstance->Config->HideBans) + this->QuitUser(New, b->Type + "-Lined", b->Reason.c_str()); + else + this->QuitUser(New, b->Reason); return; } else