summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp6
1 files changed, 5 insertions, 1 deletions
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