From 39f5ec1ec0725634c46a64c5f0cb1a3ea6a9fd91 Mon Sep 17 00:00:00 2001 From: icedream Date: Wed, 4 Nov 2015 22:08:52 +0100 Subject: [PATCH] Also check vol against null. --- app.iced | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.iced b/app.iced index e5aa742..b2f947c 100644 --- a/app.iced +++ b/app.iced @@ -316,7 +316,7 @@ ts3clientService.on "started", (ts3proc) => vol = parseInt input - if paramline.trim().length <= 0 or vol == NaN or vol > 200 or vol < 0 + if paramline.trim().length <= 0 or vol == NaN or vol == null 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