From 384ef31bc01e4a1a2e59d082c9066002410ba54a Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 26 Jul 2018 19:43:54 +0100 Subject: Use CommandBase::Params instead of std::vector. This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters. --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 442770aca..81e6512a1 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -561,7 +561,7 @@ void LocalUser::FullConnect() /* Trigger MOTD and LUSERS output, give modules a chance too */ ModResult MOD_RESULT; std::string command("LUSERS"); - std::vector parameters; + CommandBase::Params parameters; FIRST_MOD_RESULT(OnPreCommand, MOD_RESULT, (command, parameters, this, true, command)); if (!MOD_RESULT) ServerInstance->Parser.CallHandler(command, parameters, this); @@ -825,7 +825,7 @@ void User::WriteCommand(const char* command, const std::string& text) namespace { - std::string BuildNumeric(const std::string& source, User* targetuser, unsigned int num, const std::vector& params) + std::string BuildNumeric(const std::string& source, User* targetuser, unsigned int num, const Command::Params& params) { const char* const target = (targetuser->registered & REG_NICK ? targetuser->nick.c_str() : "*"); std::string raw = InspIRCd::Format(":%s %03u %s", source.c_str(), num, target); -- cgit v1.3.1-10-gc9f91