diff options
| author | 2018-09-26 23:53:29 +0100 | |
|---|---|---|
| committer | 2018-11-04 10:02:28 +0000 | |
| commit | 39ddf2fb7a4d030fc29a7d421e09394cd70dc9bf (patch) | |
| tree | ac260c2680c6dbd17a9fa756e9c7b337fd90f764 /src/usermanager.cpp | |
| parent | Fix sending malformed ERR_BANLISTFULL numerics in some contexts. (diff) | |
Fix exposing the ban reason when an xline is found in the bancache.
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 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 |
