aboutsummaryrefslogtreecommitdiffstats
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2015-01-23 20:09:31 +0000
committerGravatar Peter Powell2015-01-24 11:57:49 +0000
commite0412d5161891c04faf2050cc02e8a9cffdda8a4 (patch)
tree7684d77347ef11f5090427bce3b4836e936c8b11 /src/xline.cpp
parentRemove pointless fd == INT_MAX check from StreamSocket::DoWrite() (diff)
downloadinspircd++-e0412d5161891c04faf2050cc02e8a9cffdda8a4.tar.gz
inspircd++-e0412d5161891c04faf2050cc02e8a9cffdda8a4.tar.bz2
inspircd++-e0412d5161891c04faf2050cc02e8a9cffdda8a4.zip
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/xline.cpp')
-rw-r--r--src/xline.cpp2
1 files changed, 1 insertions, 1 deletions
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);