Prevent running the "enqueue" command without a URL.

develop
Icedream 2015-10-21 16:32:10 +02:00
parent 8964db5afa
commit e4f3e4f2c2
1 changed files with 5 additions and 0 deletions

View File

@ -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