diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-15 09:19:31 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-15 09:19:31 +0200 |
commit | 21558b67f46538f86340a6bcf1e19a5081f7eb16 (patch) | |
tree | 63170eedd465fa6284419b8ca93ccf5861299d28 /src | |
parent | 6bf8f7b9e251b814bbb3cb8e0b786eabe4a7b358 (diff) | |
download | skyhanni-21558b67f46538f86340a6bcf1e19a5081f7eb16.tar.gz skyhanni-21558b67f46538f86340a6bcf1e19a5081f7eb16.tar.bz2 skyhanni-21558b67f46538f86340a6bcf1e19a5081f7eb16.zip |
Fixed /gfs with one word did not work.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GetFromSacksTabComplete.kt | 8 |
1 files changed, 4 insertions, 4 deletions
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)) } } |