aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt5
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!")