From f3157857c488621ca2d172bf505af47e3cf1249b Mon Sep 17 00:00:00 2001 From: icedream Date: Wed, 28 Oct 2015 00:21:54 +0100 Subject: [PATCH] Completely remove handler for vlc.onEndReached. onEndReached does not just trigger the callback at the end of the playlist but actually at the end of each track. This should have been better documented. --- app.iced | 1 - 1 file changed, 1 deletion(-) diff --git a/app.iced b/app.iced index e71ef00..a05428b 100644 --- a/app.iced +++ b/app.iced @@ -71,7 +71,6 @@ ts3clientService.on "started", (ts3proc) => vlc.onForward = () => ts3query.sendtextmessage 2, 0, "Fast-forwarding..." vlc.onBackward = () => ts3query.sendtextmessage 2, 0, "Rewinding..." vlc.onEncounteredError = () => log.error "VLC has encountered an error! You will need to restart the bot.", arguments - vlc.onEndReached = () => ts3query.sendtextmessage 2, 0, "End of playlist reached." vlc.onStopped = () => ts3query.sendtextmessage 2, 0, "Stopped." ts3query.currentScHandlerID = 1