diff options
author | Peter Powell <petpow@saberuk.com> | 2018-07-26 19:43:54 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-07-26 20:12:14 +0100 |
commit | 384ef31bc01e4a1a2e59d082c9066002410ba54a (patch) | |
tree | 06bd81f9e0e48183c1ada07cf7a8757a5028cad1 /src/users.cpp | |
parent | 09c5439c02f31e9875083e51966dad535af005a9 (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/users.cpp')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<std::string> 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<std::string>& 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); |