#include "servercommand.h"
#include "commandbuilder.h"
+#include "remoteuser.h"
/** Handle /RCONNECT
*/
RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) { return ROUTE_UNICAST(parameters[0]); }
};
-class CommandPush : public ServerCommand
-{
- public:
- CommandPush(Module* Creator) : ServerCommand(Creator, "PUSH", 2) { }
- CmdResult Handle(User* user, std::vector<std::string>& parameters);
- RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) { return ROUTE_UNICAST(parameters[0]); }
-};
-
class CommandSave : public ServerCommand
{
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 Builder : public CmdBuilder
+ {
+ public:
+ Builder(SpanningTree::RemoteUser* target, const Numeric::Numeric& numeric);
+ };
};
class SpanningTreeCommands
CommandNick nick;
CommandPing ping;
CommandPong pong;
- CommandPush push;
CommandSave save;
CommandServer server;
CommandSQuit squit;