]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_spanningtree Remove server-to-server VERSION handler
authorAttila Molnar <attilamolnar@hush.com>
Tue, 17 Jun 2014 11:41:21 +0000 (13:41 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Tue, 17 Jun 2014 11:41:21 +0000 (13:41 +0200)
src/modules/m_spanningtree/commands.h
src/modules/m_spanningtree/main.cpp
src/modules/m_spanningtree/version.cpp [deleted file]

index 2554c689e4fc6e1a35901feed08cca7e42bbf32e..67e2d43d66d0e8497ba8cf8dc160a93c2761ca33 100644 (file)
@@ -326,13 +326,6 @@ class CommandSNONotice : public ServerCommand
        CmdResult Handle(User* user, std::vector<std::string>& parameters);
 };
 
-class CommandVersion : public ServerOnlyServerCommand<CommandVersion>
-{
- public:
-       CommandVersion(Module* Creator) : ServerOnlyServerCommand<CommandVersion>(Creator, "VERSION", 1) { }
-       CmdResult HandleServer(TreeServer* server, std::vector<std::string>& parameters);
-};
-
 class CommandBurst : public ServerOnlyServerCommand<CommandBurst>
 {
  public:
@@ -390,7 +383,6 @@ class SpanningTreeCommands
        CommandServer server;
        CommandSQuit squit;
        CommandSNONotice snonotice;
-       CommandVersion version;
        CommandBurst burst;
        CommandEndBurst endburst;
        CommandSInfo sinfo;
index 21eaaa00dce6cb455a9c7c60d1c7bef68436b044..644193679d36352e0932edbfe6b10af686e339b1 100644 (file)
@@ -50,7 +50,7 @@ SpanningTreeCommands::SpanningTreeCommands(ModuleSpanningTree* module)
        fmode(module), ftopic(module), fhost(module), fident(module), fname(module),
        away(module), addline(module), delline(module), encap(module), idle(module),
        nick(module), ping(module), pong(module), push(module), save(module),
-       server(module), squit(module), snonotice(module), version(module),
+       server(module), squit(module), snonotice(module),
        burst(module), endburst(module), sinfo(module)
 {
 }
diff --git a/src/modules/m_spanningtree/version.cpp b/src/modules/m_spanningtree/version.cpp
deleted file mode 100644 (file)
index 193b510..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * InspIRCd -- Internet Relay Chat Daemon
- *
- *   Copyright (C) 2008 Robin Burchell <robin+git@viroteck.net>
- *
- * This file is part of InspIRCd.  InspIRCd is free software: you can
- * redistribute it and/or modify it under the terms of the GNU General Public
- * License as published by the Free Software Foundation, version 2.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-
-#include "inspircd.h"
-
-#include "main.h"
-#include "utils.h"
-#include "treeserver.h"
-#include "commands.h"
-
-CmdResult CommandVersion::HandleServer(TreeServer* server, std::vector<std::string>& params)
-{
-       server->SetVersion(params[0]);
-       return CMD_SUCCESS;
-}