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/unrealircd.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/unrealircd.cpp')
-rw-r--r-- | modules/protocol/unrealircd.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/modules/protocol/unrealircd.cpp b/modules/protocol/unrealircd.cpp index 9aab49c92..fa5f72f95 100644 --- a/modules/protocol/unrealircd.cpp +++ b/modules/protocol/unrealircd.cpp @@ -401,10 +401,9 @@ private: distmask = message.target.substr(0, p); } - if (message.ext.empty()) - Uplink::Send(BotInfo::Find(message.source), "SASL", distmask, message.target, message.type, message.data); - else - Uplink::Send(BotInfo::Find(message.source), "SASL", distmask, message.target, message.type, message.data, message.ext); + auto newparams = message.data; + newparams.insert(newparams.begin(), { distmask, message.target, message.type }); + Uplink::SendInternal({}, BotInfo::Find(message.source), "ENCAP", newparams); } void SendSVSLogin(const Anope::string &uid, NickAlias *na) override @@ -1307,9 +1306,7 @@ struct IRCDMessageSASL final m.source = params[1]; m.target = params[0]; m.type = params[2]; - m.data = params[3]; - m.ext = params.size() > 4 ? params[4] : ""; - + m.data.assign(params.begin() + 3, params.end()); SASL::sasl->ProcessMessage(m); } }; |