From daa907cb09e394cb88737ddef9299d0c4ba5ee98 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 17 Jun 2014 13:41:21 +0200 Subject: m_spanningtree Remove server-to-server VERSION handler --- src/modules/m_spanningtree/commands.h | 8 -------- src/modules/m_spanningtree/main.cpp | 2 +- src/modules/m_spanningtree/version.cpp | 31 ------------------------------- 3 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 src/modules/m_spanningtree/version.cpp (limited to 'src') diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h index 2554c689e..67e2d43d6 100644 --- a/src/modules/m_spanningtree/commands.h +++ b/src/modules/m_spanningtree/commands.h @@ -326,13 +326,6 @@ class CommandSNONotice : public ServerCommand CmdResult Handle(User* user, std::vector& parameters); }; -class CommandVersion : public ServerOnlyServerCommand -{ - public: - CommandVersion(Module* Creator) : ServerOnlyServerCommand(Creator, "VERSION", 1) { } - CmdResult HandleServer(TreeServer* server, std::vector& parameters); -}; - class CommandBurst : public ServerOnlyServerCommand { public: @@ -390,7 +383,6 @@ class SpanningTreeCommands CommandServer server; CommandSQuit squit; CommandSNONotice snonotice; - CommandVersion version; CommandBurst burst; CommandEndBurst endburst; CommandSInfo sinfo; diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 21eaaa00d..644193679 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -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 index 193b51083..000000000 --- a/src/modules/m_spanningtree/version.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* - * InspIRCd -- Internet Relay Chat Daemon - * - * Copyright (C) 2008 Robin Burchell - * - * 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 . - */ - - -#include "inspircd.h" - -#include "main.h" -#include "utils.h" -#include "treeserver.h" -#include "commands.h" - -CmdResult CommandVersion::HandleServer(TreeServer* server, std::vector& params) -{ - server->SetVersion(params[0]); - return CMD_SUCCESS; -} -- cgit v1.2.3