summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/commands.h
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-07-01 19:14:14 +0200
committerattilamolnar <attilamolnar@hush.com>2013-08-19 20:08:41 +0200
commit0cec1856ccd0cfbf7bd5d6f82be1d02f9bdeed4e (patch)
tree8035f9ff0f1e14f3cfc45a0b95aa47c0c491ccbd /src/modules/m_spanningtree/commands.h
parent5dcd385b772f2ce822cf0700912ced93bd06c914 (diff)
Remove cmd_map from the core
Diffstat (limited to 'src/modules/m_spanningtree/commands.h')
-rw-r--r--src/modules/m_spanningtree/commands.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h
index a895c569b..e467cdc8b 100644
--- a/src/modules/m_spanningtree/commands.h
+++ b/src/modules/m_spanningtree/commands.h
@@ -39,6 +39,22 @@ class CommandRSQuit : public Command
RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
};
+class CommandMap : public Command
+{
+ /** Show MAP output to a user (recursive)
+ */
+ void ShowMap(TreeServer* Current, User* user, int depth, int &line, char* names, int &maxnamew, char* stats);
+
+ /** Returns oper-specific MAP information
+ */
+ std::string MapOperInfo(TreeServer* Current);
+
+ public:
+ CommandMap(Module* Creator);
+ CmdResult Handle(const std::vector<std::string>& parameters, User* user);
+ RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
+};
+
class CommandSVSJoin : public ServerCommand
{
public:
@@ -269,6 +285,7 @@ class SpanningTreeCommands
public:
CommandRConnect rconnect;
CommandRSQuit rsquit;
+ CommandMap map;
CommandSVSJoin svsjoin;
CommandSVSPart svspart;
CommandSVSNick svsnick;