]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/xline.cpp
Fix parsing anticaps mode parameters.
[user/henk/code/inspircd.git] / src / xline.cpp
index 55496b42405e73d373bb2ff160c672c5ba1394c7..ccdc58dc235cec6021998872fd50aa458916de70 100644 (file)
@@ -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;