aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/commands.h
diff options
context:
space:
mode:
authorGravatar Attila Molnar2016-03-29 16:28:01 +0200
committerGravatar Attila Molnar2016-03-29 16:28:01 +0200
commita7dedb347b7dcd26ce93d4af81e77cfa3cf82d0f (patch)
tree391004f3fcf9eab6486a9758f38254b0b9cb828d /src/modules/m_spanningtree/commands.h
parentm_spanningtree Add class SpanningTree::RemoteUser (diff)
m_spanningtree Add NUM command handler
Diffstat (limited to 'src/modules/m_spanningtree/commands.h')
-rw-r--r--src/modules/m_spanningtree/commands.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h
index 1f7456426..a65639434 100644
--- a/src/modules/m_spanningtree/commands.h
+++ b/src/modules/m_spanningtree/commands.h
@@ -369,6 +369,14 @@ class CommandSInfo : public ServerOnlyServerCommand<CommandSInfo>
};
};
+class CommandNum : public ServerOnlyServerCommand<CommandNum>
+{
+ public:
+ CommandNum(Module* Creator) : ServerOnlyServerCommand<CommandNum>(Creator, "NUM", 3) { }
+ CmdResult HandleServer(TreeServer* server, std::vector<std::string>& parameters);
+ RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
+};
+
class SpanningTreeCommands
{
public:
@@ -401,5 +409,6 @@ class SpanningTreeCommands
CommandSNONotice snonotice;
CommandEndBurst endburst;
CommandSInfo sinfo;
+ CommandNum num;
SpanningTreeCommands(ModuleSpanningTree* module);
};