From f358c5bc2c9bf3bf8ec1d8b10127f9fcd50c10e8 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sat, 24 Oct 2020 19:32:14 +0100 Subject: [PATCH] corrects a issue where the simname would not be found correctly --- Core/bottypes/athome.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Core/bottypes/athome.cs b/Core/bottypes/athome.cs index 737f0c3..43f9f31 100644 --- a/Core/bottypes/athome.cs +++ b/Core/bottypes/athome.cs @@ -172,9 +172,16 @@ namespace BSB.bottypes bool reply = false; 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;