From 8ab524467bb56e90e17b9c9d3da887dd743c8c76 Mon Sep 17 00:00:00 2001 From: icedream Date: Tue, 27 Oct 2015 22:47:29 +0100 Subject: [PATCH] Fix non-numeric volume value being passed through to VLC as NaN. Those values are not supposed to be accepted in the first place... --- app.iced | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.iced b/app.iced index 21826f9..95c94f1 100644 --- a/app.iced +++ b/app.iced @@ -255,7 +255,7 @@ ts3clientService.on "started", (ts3proc) => when "vol" vol = parseInt paramline - if paramline.trim().length <= 0 or vol > 200 or vol < 0 + if paramline.trim().length <= 0 or vol == NaN or vol > 200 or vol < 0 ts3query.sendtextmessage args.targetmode, invoker.id, "[B]vol [/B] - takes a number between 0 (0%) and 200 (200%) to set the volume. 100% is 100. Defaults to 50 (50%) on startup." return