aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-07-30 11:29:26 +0100
committerGravatar Sadie Powell2026-07-30 11:29:26 +0100
commitdcd1f3fe7a57915b9f3c879e4dc0a2d4147f1d8a (patch)
tree9b66803014e934512360cc0dc2544aaa12aaeea6 /modules
parentAdd an initializer list overload of CommandBase::Params. (diff)
Use CommandBase::Params in the sasl module.
Diffstat (limited to 'modules')
-rw-r--r--modules/sasl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/sasl.cpp b/modules/sasl.cpp
index d6d57cf95..c651d460a 100644
--- a/modules/sasl.cpp
+++ b/modules/sasl.cpp
@@ -47,7 +47,7 @@ namespace
Account::ProviderAPI* g_accountproviderapi;
ClientProtocol::EventProvider* g_protoev;
- void SendSASL(LocalUser* user, const std::string& agent, char mode, const std::vector<std::string>& parameters)
+ void SendSASL(LocalUser* user, const std::string& agent, char mode, const CommandBase::Params& parameters)
{
auto* target = (*g_accountproviderapi)->GetServer();
if (!target)
@@ -120,7 +120,7 @@ private:
void SendHostIP(TLS::API& tlsapi)
{
- std::vector<std::string> params;
+ CommandBase::Params params;
params.reserve(3);
params.push_back(user->GetRealHost());
params.push_back(user->GetAddress());
@@ -135,7 +135,7 @@ public:
{
SendHostIP(tlsapi);
- std::vector<std::string> params;
+ CommandBase::Params params;
params.push_back(method);
if (tlsapi)
@@ -219,7 +219,7 @@ public:
this->state = SASL_DONE;
}
- bool SendClientMessage(const std::vector<std::string>& parameters)
+ bool SendClientMessage(const CommandBase::Params& parameters)
{
if (this->state != SASL_COMM)
return true;