From 6089d1a685114f380cf6838dcff78bc3bb1d3bbd Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 27 Jul 2014 18:43:30 +0200 Subject: [PATCH] m_spanningtree Remove post-handshake BURST handler --- src/modules/m_spanningtree/commands.h | 8 -------- src/modules/m_spanningtree/main.cpp | 2 +- src/modules/m_spanningtree/misccommands.cpp | 6 ------ 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h index cbe864275..a5fc1164e 100644 --- a/src/modules/m_spanningtree/commands.h +++ b/src/modules/m_spanningtree/commands.h @@ -330,13 +330,6 @@ class CommandSNONotice : public ServerCommand CmdResult Handle(User* user, std::vector& parameters); }; -class CommandBurst : public ServerOnlyServerCommand -{ - public: - CommandBurst(Module* Creator) : ServerOnlyServerCommand(Creator, "BURST") { } - CmdResult HandleServer(TreeServer* server, std::vector& parameters); -}; - class CommandEndBurst : public ServerOnlyServerCommand { public: @@ -387,7 +380,6 @@ class SpanningTreeCommands CommandServer server; CommandSQuit squit; CommandSNONotice snonotice; - CommandBurst burst; CommandEndBurst endburst; CommandSInfo sinfo; SpanningTreeCommands(ModuleSpanningTree* module); diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index ce13e5d25..c135cd134 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -51,7 +51,7 @@ SpanningTreeCommands::SpanningTreeCommands(ModuleSpanningTree* 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), - burst(module), endburst(module), sinfo(module) + endburst(module), sinfo(module) { } diff --git a/src/modules/m_spanningtree/misccommands.cpp b/src/modules/m_spanningtree/misccommands.cpp index 5b04c73bc..00f31d668 100644 --- a/src/modules/m_spanningtree/misccommands.cpp +++ b/src/modules/m_spanningtree/misccommands.cpp @@ -35,12 +35,6 @@ CmdResult CommandSNONotice::Handle(User* user, std::vector& params) return CMD_SUCCESS; } -CmdResult CommandBurst::HandleServer(TreeServer* server, std::vector& params) -{ - server->bursting = true; - return CMD_SUCCESS; -} - CmdResult CommandEndBurst::HandleServer(TreeServer* server, std::vector& params) { server->FinishBurst(); -- 2.39.5