diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-29 22:11:50 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-29 22:11:50 +0200 |
commit | 56f13597822b45caea4167d7d75258078e06c1b3 (patch) | |
tree | dc468a152b2402554f99878162e1ed9f3f58f9ad /src/main/java/at/hannibal2/skyhanni/test | |
parent | b2157a247521d702915b4a2629118c7792bc1793 (diff) | |
download | skyhanni-56f13597822b45caea4167d7d75258078e06c1b3.tar.gz skyhanni-56f13597822b45caea4167d7d75258078e06c1b3.tar.bz2 skyhanni-56f13597822b45caea4167d7d75258078e06c1b3.zip |
cant use multi lines without clipboard
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt index e5ed69064..38db097a2 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt @@ -18,10 +18,11 @@ object TestChatCommand { SkyHanniMod.launchCoroutine { val mutArgs = args.toMutableList() + val multiLines = mutArgs.remove("-lines") val isComplex = mutArgs.remove("-complex") - val isClipboard = mutArgs.remove("-clipboard") + // cant use multi lines without clipboard + val isClipboard = mutArgs.remove("-clipboard") || multiLines val isHidden = mutArgs.remove("-s") - val multiLines = mutArgs.remove("-lines") val text = if (isClipboard) { OSUtils.readFromClipboard() ?: return@launchCoroutine ChatUtils.userError("Clipboard does not contain a string!") |