aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/servercommand.h
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-07-26 19:43:54 +0100
committerGravatar Peter Powell2018-07-26 20:12:14 +0100
commit384ef31bc01e4a1a2e59d082c9066002410ba54a (patch)
tree06bd81f9e0e48183c1ada07cf7a8757a5028cad1 /src/modules/m_spanningtree/servercommand.h
parentAdd a module which implements the HAProxy PROXY v2 protocol. (diff)
Use CommandBase::Params instead of std::vector<std::string>.
This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
Diffstat (limited to 'src/modules/m_spanningtree/servercommand.h')
-rw-r--r--src/modules/m_spanningtree/servercommand.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/servercommand.h b/src/modules/m_spanningtree/servercommand.h
index 84488bd68..6ea5a9251 100644
--- a/src/modules/m_spanningtree/servercommand.h
+++ b/src/modules/m_spanningtree/servercommand.h
@@ -42,8 +42,8 @@ class ServerCommand : public CommandBase
*/
void RegisterService() CXX11_OVERRIDE;
- virtual CmdResult Handle(User* user, std::vector<std::string>& parameters) = 0;
- RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) CXX11_OVERRIDE;
+ virtual CmdResult Handle(User* user, Params& parameters) = 0;
+ RouteDescriptor GetRouting(User* user, const Params& parameters) CXX11_OVERRIDE;
/**
* Extract the TS from a string.
@@ -65,7 +65,7 @@ class UserOnlyServerCommand : public ServerCommand
UserOnlyServerCommand(Module* Creator, const std::string& Name, unsigned int MinPara = 0, unsigned int MaxPara = 0)
: ServerCommand(Creator, Name, MinPara, MaxPara) { }
- CmdResult Handle(User* user, std::vector<std::string>& parameters) CXX11_OVERRIDE
+ CmdResult Handle(User* user, Params& parameters) CXX11_OVERRIDE
{
RemoteUser* remoteuser = IS_REMOTE(user);
if (!remoteuser)
@@ -84,7 +84,7 @@ class ServerOnlyServerCommand : public ServerCommand
ServerOnlyServerCommand(Module* Creator, const std::string& Name, unsigned int MinPara = 0, unsigned int MaxPara = 0)
: ServerCommand(Creator, Name, MinPara, MaxPara) { }
- CmdResult Handle(User* user, std::vector<std::string>& parameters) CXX11_OVERRIDE
+ CmdResult Handle(User* user, CommandBase::Params& parameters) CXX11_OVERRIDE
{
if (!IS_SERVER(user))
throw ProtocolException("Invalid source");