Dont re-highlight if addon name starts with http link

This commit is contained in:
Benau 2021-09-09 16:52:16 +08:00
parent c9f1c0c866
commit 5902a146a6

View File

@ -368,6 +368,14 @@ void NetworkingLobby::addMoreServerInfo(core::stringw info)
}
else
end_pos = orig_str->size();
std::u32string name = orig_str->substr(pos + ia.size(),
end_pos - pos - ia.size());
if (name.rfind(U"https://", 0) == 0 ||
name.rfind(U"http://", 0) == 0)
{
pos = orig_str->find(ia, pos + ia.size());
continue;
}
for (size_t p = pos + ia.size(); p < end_pos; p++)
addon_names.insert((int)p);
pos = orig_str->find(ia, pos + ia.size());