aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_cban.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-02-05 00:47:30 +0000
committerGravatar Sadie Powell2019-02-05 00:47:30 +0000
commitbfa5fb407e13ad4adb5c062021de50ecd760ed95 (patch)
treec573269b1a94fd7e7da27c1b90b05fa60916de23 /src/modules/m_cban.cpp
parentRemove support for the deprecated <power> config tag. (diff)
parentModuleManager: use std::flush instead of fflush(stdout). (diff)
downloadinspircd++-bfa5fb407e13ad4adb5c062021de50ecd760ed95.tar.gz
inspircd++-bfa5fb407e13ad4adb5c062021de50ecd760ed95.tar.bz2
inspircd++-bfa5fb407e13ad4adb5c062021de50ecd760ed95.zip
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r--src/modules/m_cban.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index 724ebc10f..949b410dd 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -98,9 +98,11 @@ class CommandCBan : public Command
if (parameters.size() == 1)
{
- if (ServerInstance->XLines->DelLine(parameters[0].c_str(), "CBAN", user))
+ std::string reason;
+
+ if (ServerInstance->XLines->DelLine(parameters[0].c_str(), "CBAN", reason, user))
{
- ServerInstance->SNO->WriteGlobalSno('x', "%s removed CBan on %s.",user->nick.c_str(),parameters[0].c_str());
+ ServerInstance->SNO->WriteGlobalSno('x', "%s removed CBan on %s: %s", user->nick.c_str(), parameters[0].c_str(), reason.c_str());
}
else
{