]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/pong.cpp
m_spanningtree Throw an exception on protocol violations instead of returning CMD_INVALID
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / pong.cpp
index 006d51a101c7fc00dd333935ccde2e8f2ca667ae..6a29163e48c2d5f9e0c378668e621be5cf93237e 100644 (file)
@@ -24,9 +24,8 @@
 #include "commands.h"
 #include "utils.h"
 
-CmdResult CommandPong::Handle(User* user, std::vector<std::string>& params)
+CmdResult CommandPong::HandleServer(TreeServer* server, std::vector<std::string>& params)
 {
-       TreeServer* server = Utils->FindServer(user->server);
        if (server->bursting)
        {
                ServerInstance->SNO->WriteGlobalSno('l', "Server \002%s\002 has not finished burst, forcing end of burst (send ENDBURST!)", server->GetName().c_str());
@@ -42,4 +41,3 @@ CmdResult CommandPong::Handle(User* user, std::vector<std::string>& params)
        }
        return CMD_SUCCESS;
 }
-