Clans: switch fmt::split to fmt::split_sv

Signed-off-by: zeph <zephyrzefa15@gmail.com>
This commit is contained in:
zeph 2025-12-08 22:36:16 +01:00
parent 185c4da934
commit d0b2136579
No known key found for this signature in database

View File

@ -129,7 +129,7 @@ bool cfg_clans::add_host(std::string_view new_description, std::string_view new_
bool cfg_clans::del_host(std::string_view del_description, std::string_view del_host)
{
// Do not delete default servers
const auto def_desc_and_host = fmt::split(hosts.def, {"|"});
const auto def_desc_and_host = fmt::split_sv(hosts.def, {"|"});
ensure(def_desc_and_host.size() == 2);
if (del_description == def_desc_and_host[0] && del_host == def_desc_and_host[1])
{