From eb00dc2f8795d15710d368f2fdb2f0df56509c93 Mon Sep 17 00:00:00 2001 From: icedream Date: Tue, 27 Oct 2015 23:19:40 +0100 Subject: [PATCH] While we're on it, fine-tuning the playlist message. --- app.iced | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.iced b/app.iced index ac0a8b1..3f6cd34 100644 --- a/app.iced +++ b/app.iced @@ -213,7 +213,8 @@ ts3clientService.on "started", (ts3proc) => vlc.playlist.clear() ts3query.sendtextmessage args.targetmode, invoker.id, "Cleared the playlist." when "list", "playlist" - message = "Currently these tracks are in the playlist:\n" + message = "Currently there are #{vlc.playlist.items.count} tracks are in the playlist" + message += if vlc.playlist.items.count > 0 then ":\n" else "." for i in [ 0 ... vlc.playlist.items.count ] if vlc.playlist.currentItem == i message += "[COLOR=green][B]"