]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/delline.cpp
Add the reason to xline removal notices. (#1545)
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / delline.cpp
index c64bec6541d874aab30a52acdfcf8a018709703b..e376147fdb80a883905ba4affa80736c7ab783f3 100644 (file)
 CmdResult CommandDelLine::Handle(User* user, Params& params)
 {
        const std::string& setter = user->nick;
+       std::string reason;
 
        // XLineManager::DelLine() returns true if the xline existed, false if it didn't
-       if (ServerInstance->XLines->DelLine(params[1].c_str(), params[0], user))
+       if (ServerInstance->XLines->DelLine(params[1].c_str(), params[0], reason, user))
        {
-               ServerInstance->SNO->WriteToSnoMask('X',"%s removed %s%s on %s", setter.c_str(),
-                               params[0].c_str(), params[0].length() == 1 ? "-line" : "", params[1].c_str());
+               ServerInstance->SNO->WriteToSnoMask('X', "%s removed %s%s on %s: %s", setter.c_str(),
+                               params[0].c_str(), params[0].length() == 1 ? "-line" : "", params[1].c_str(), reason.c_str());
                return CMD_SUCCESS;
        }
        return CMD_FAILURE;