aboutsummaryrefslogtreecommitdiffstats
path: root/src/xline.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/xline.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/xline.cpp')
-rw-r--r--src/xline.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index f727ea52e..249872740 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -294,7 +294,7 @@ bool XLineManager::AddLine(XLine* line, User* user)
// deletes a line, returns true if the line existed and was removed
-bool XLineManager::DelLine(const char* hostmask, const std::string &type, User* user, bool simulate)
+bool XLineManager::DelLine(const char* hostmask, const std::string& type, std::string& reason, User* user, bool simulate)
{
ContainerIter x = lookup_lines.find(type);
@@ -306,6 +306,8 @@ bool XLineManager::DelLine(const char* hostmask, const std::string &type, User*
if (y == x->second.end())
return false;
+ reason.assign(y->second->reason);
+
if (simulate)
return true;