From 21558b67f46538f86340a6bcf1e19a5081f7eb16 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 15 Sep 2023 09:19:31 +0200 Subject: Fixed /gfs with one word did not work. --- .../skyhanni/features/misc/tabcomplete/GetFromSacksTabComplete.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GetFromSacksTabComplete.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GetFromSacksTabComplete.kt index 1fc7521d2..b8e3f56ad 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GetFromSacksTabComplete.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GetFromSacksTabComplete.kt @@ -34,10 +34,10 @@ object GetFromSacksTabComplete { if (commands.any { message.startsWith("/$it ") }) { val rawName = message.split(" ")[1] val realName = rawName.replace("_", " ") - if (realName in sackList) { - event.isCanceled = true - LorenzUtils.sendMessageToServer(message.replace(rawName, realName)) - } + if (realName == rawName) return + if (realName !in sackList) return + event.isCanceled = true + LorenzUtils.sendMessageToServer(message.replace(rawName, realName)) } } -- cgit