]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/delline.cpp
Amend OnPostCommand to specify whether the command is loopcalled.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / delline.cpp
index c4ed1691bfa0299857fa732c0848d18352a854b8..c64bec6541d874aab30a52acdfcf8a018709703b 100644 (file)
 
 #include "commands.h"
 
-CmdResult CommandDelLine::Handle(User* user, std::vector<std::string>& params)
+CmdResult CommandDelLine::Handle(User* user, Params& params)
 {
        const std::string& setter = user->nick;
 
-       /* NOTE: No check needed on 'user', this function safely handles NULL */
+       // XLineManager::DelLine() returns true if the xline existed, false if it didn't
        if (ServerInstance->XLines->DelLine(params[1].c_str(), params[0], user))
        {
                ServerInstance->SNO->WriteToSnoMask('X',"%s removed %s%s on %s", setter.c_str(),
@@ -35,4 +35,3 @@ CmdResult CommandDelLine::Handle(User* user, std::vector<std::string>& params)
        }
        return CMD_FAILURE;
 }
-