From c7759c765cdd3eb086daedd3222d2d8d67791147 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 12 Jun 2014 16:20:31 +0200 Subject: m_spanningtree Explicitly specify the routing for RESYNC as the one inherited from ServerCommand doesn't suit it Command::GetRouting() defaulted to local only when RESYNC was added, but ServerCommand overrides it. --- src/modules/m_spanningtree/commands.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h index 741954392..7ecdaeadc 100644 --- a/src/modules/m_spanningtree/commands.h +++ b/src/modules/m_spanningtree/commands.h @@ -207,6 +207,7 @@ class CommandResync : public ServerOnlyServerCommand public: CommandResync(Module* Creator) : ServerOnlyServerCommand(Creator, "RESYNC", 1) { } CmdResult HandleServer(TreeServer* server, std::vector& parameters); + RouteDescriptor GetRouting(User* user, const std::vector& parameters) { return ROUTE_LOCALONLY; } }; class CommandAway : public UserOnlyServerCommand -- cgit v1.2.3