diff options
author | Peter Powell <petpow@saberuk.com> | 2015-01-23 20:09:31 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2015-01-24 11:57:49 +0000 |
commit | e0412d5161891c04faf2050cc02e8a9cffdda8a4 (patch) | |
tree | 7684d77347ef11f5090427bce3b4836e936c8b11 /src | |
parent | 38bc192dd6d289b8632349c67ef2cafdca3b4159 (diff) |
Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.
This is specified in RFC 1459 so we should probably use it.
Diffstat (limited to 'src')
-rw-r--r-- | src/usermanager.cpp | 2 | ||||
-rw-r--r-- | src/xline.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 52cb4989f..0efad66b4 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -112,7 +112,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs /* user banned */ ServerInstance->Logs->Log("BANCACHE", LOG_DEBUG, "BanCache: Positive hit for " + New->GetIPString()); if (!ServerInstance->Config->XLineMessage.empty()) - New->WriteNotice("*** " + ServerInstance->Config->XLineMessage); + New->WriteNumeric(ERR_YOUREBANNEDCREEP, ":" + ServerInstance->Config->XLineMessage); this->QuitUser(New, b->Reason); return; } diff --git a/src/xline.cpp b/src/xline.cpp index 13124a392..dedf8c7a9 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -531,7 +531,7 @@ void XLine::DefaultApply(User* u, const std::string &line, bool bancache) const std::string banReason = line + "-Lined: " + reason; if (!ServerInstance->Config->XLineMessage.empty()) - u->WriteNotice("*** " + ServerInstance->Config->XLineMessage); + u->WriteNumeric(ERR_YOUREBANNEDCREEP, ":" + ServerInstance->Config->XLineMessage); if (ServerInstance->Config->HideBans) ServerInstance->Users->QuitUser(u, line + "-Lined", &banReason); |