corrects a issue where the simname would not be found correctly

This commit is contained in:
Madpeter 2020-10-24 19:32:14 +01:00
parent b55682c72a
commit f358c5bc2c

View file

@ -172,9 +172,16 @@ namespace BSB.bottypes
bool reply = false; bool reply = false;
foreach (string sl_url in myconfig.Basic_HomeRegions) foreach (string sl_url in myconfig.Basic_HomeRegions)
{ {
if (sl_url.ToLowerInvariant().Contains(simname) == true) string[] bits = helpers.ParseSLurl(sl_url);
if (helpers.notempty(bits) == true)
{ {
reply = true; if (bits.Length == 4)
{
if(bits[0].ToLowerInvariant() == simname)
{
return true;
}
}
} }
} }
return reply; return reply;