diff options
author | Sadie Powell <sadie@witchery.services> | 2025-02-05 13:23:50 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-02-05 13:45:15 +0000 |
commit | 115c9eb5a0c5f604ef35cbb906f3603f26e5279c (patch) | |
tree | 544cfbb8f904c37f7f7812ca527f35387ae7b09f /modules/protocol/solanum.cpp | |
parent | ee18083bb780fc3dd9ff8af221d970e4cd61a619 (diff) |
Merge the SASL data and ext parameters.
There might be more than this so its better to just store it in a
1+ parameter vector.
Diffstat (limited to 'modules/protocol/solanum.cpp')
-rw-r--r-- | modules/protocol/solanum.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/protocol/solanum.cpp b/modules/protocol/solanum.cpp index d3656b570..fa05daf46 100644 --- a/modules/protocol/solanum.cpp +++ b/modules/protocol/solanum.cpp @@ -154,10 +154,10 @@ public: { Server *s = Server::Find(message.target.substr(0, 3)); auto target = s ? s->GetName() : message.target.substr(0, 3); - if (message.ext.empty()) - Uplink::Send("ENCAP", target, "SASL", message.source, message.target, message.type, message.data); - else - Uplink::Send("ENCAP", target, "SASL", message.source, message.target, message.type, message.data, message.ext); + + auto newparams = message.data; + newparams.insert(newparams.begin(), { target, "SASL", message.source, message.target, message.type }); + Uplink::SendInternal({}, Me, "ENCAP", newparams); } void SendSVSLogin(const Anope::string &uid, NickAlias *na) override @@ -221,9 +221,7 @@ struct IRCDMessageEncap final m.source = params[2]; m.target = params[3]; m.type = params[4]; - m.data = params[5]; - m.ext = params.size() > 6 ? params[6] : ""; - + m.data.assign(params.begin() + 5, params.end()); SASL::sasl->ProcessMessage(m); } } |