From 65405ea53912a330540a1e97cb5efe9d7196bc9d Mon Sep 17 00:00:00 2001 From: Gurge44 Date: Sat, 15 Aug 2026 13:52:55 +0200 Subject: [PATCH] no allocation --- Modules/Utils.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Modules/Utils.cs b/Modules/Utils.cs index 4bf2ed47f..79f44de9d 100644 --- a/Modules/Utils.cs +++ b/Modules/Utils.cs @@ -5113,7 +5113,15 @@ public static class Utils if (ip.Contains("allofus")) { - name = $"AOU-{ip.Split('.')[0].ToUpper()}"; + name = "AOU-"; + + for (var i = 0; i < ip.Length; i++) + { + char c = ip[i]; + if (c == '.') break; + name += char.ToUpper(c); + } + return name; }