From e4f3e4f2c2cfa23697197be5db5afdca8c8f4bc8 Mon Sep 17 00:00:00 2001 From: icedream Date: Wed, 21 Oct 2015 16:32:10 +0200 Subject: [PATCH] Prevent running the "enqueue" command without a URL. --- app.iced | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.iced b/app.iced index c865c3a..9a8a5d8 100644 --- a/app.iced +++ b/app.iced @@ -211,6 +211,11 @@ ts3clientService.on "started", (ts3proc) => ts3query.sendtextmessage args.targetmode, invoker.id, "Going to the next playlist entry." when "enqueue", "add", "append" inputBB = paramline + + if inputBB.length <= 0 + ts3query.sendtextmessage args.targetmode, invoker.id, "[B]#{name}[/B] takes a URL as a parameter that should be appended to the playlist." + return + input = removeBB paramline # only allow playback from file if it's a preconfigured alias