]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/misccommands.cpp
Fix detecting secure clients connecting through HAProxy/WEBIRC.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / misccommands.cpp
index 6e66c68a7edd9a4473da13f14c6353490704df68..8fc1b178f4134a738ff8f96ec7bd43ff9c71b3d2 100644 (file)
 #include "commands.h"
 #include "treeserver.h"
 
-CmdResult CommandSNONotice::Handle(User* user, std::vector<std::string>& params)
+CmdResult CommandSNONotice::Handle(User* user, Params& params)
 {
        ServerInstance->SNO->WriteToSnoMask(params[0][0], "From " + user->nick + ": " + params[1]);
        return CMD_SUCCESS;
 }
 
-CmdResult CommandBurst::Handle(User* user, std::vector<std::string>& params)
+CmdResult CommandEndBurst::HandleServer(TreeServer* server, Params& params)
 {
-       if (!IS_SERVER(user))
-               return CMD_INVALID;
-
-       TreeServer* server = Utils->FindServer(user->server);
-       server->bursting = true;
-       return CMD_SUCCESS;
-}
-
-CmdResult CommandEndBurst::Handle(User* user, std::vector<std::string>& params)
-{
-       if (!IS_SERVER(user))
-               return CMD_INVALID;
-
-       TreeServer* server = Utils->FindServer(user->server);
        server->FinishBurst();
        return CMD_SUCCESS;
 }