diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-12 16:20:31 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-12 16:20:31 +0200 |
commit | c7759c765cdd3eb086daedd3222d2d8d67791147 (patch) | |
tree | c821b6eeb3dfcee973762c126b2ebc80880da34e /src | |
parent | 17cd4ada26f5a7545396531feec10ed490307dd6 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/commands.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<CommandResync> public: CommandResync(Module* Creator) : ServerOnlyServerCommand<CommandResync>(Creator, "RESYNC", 1) { } CmdResult HandleServer(TreeServer* server, std::vector<std::string>& parameters); + RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) { return ROUTE_LOCALONLY; } }; class CommandAway : public UserOnlyServerCommand<CommandAway> |