From 4eed972a235325b26276ad4a6f040b79081019f1 Mon Sep 17 00:00:00 2001 From: icedream Date: Tue, 27 Oct 2015 23:01:23 +0100 Subject: [PATCH] Implement "empty"/"clear" commands. These commands allow emptying the current playlist. Here another reminder to implement a proper permission system soon! --- app.iced | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.iced b/app.iced index 4d94018..89e5a8d 100644 --- a/app.iced +++ b/app.iced @@ -209,6 +209,9 @@ ts3clientService.on "started", (ts3proc) => vlc.playlist.next() when "prev", "previous" vlc.playlist.prev() + when "empty", "clear" + vlc.playlist.clear() + ts3query.sendtextmessage args.targetmode, invoker.id, "Cleared the playlist." when "enqueue", "add", "append" inputBB = paramline.trim() input = (removeBB paramline).trim()