Fix non-numeric volume value being passed through to VLC as NaN.

Those values are not supposed to be accepted in the first place...
develop
Icedream 2015-10-27 22:47:29 +01:00
parent 852052388d
commit 8ab524467b
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ ts3clientService.on "started", (ts3proc) =>
when "vol" when "vol"
vol = parseInt paramline 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 <number>[/B] - takes a number between 0 (0%) and 200 (200%) to set the volume. 100% is 100. Defaults to 50 (50%) on startup." ts3query.sendtextmessage args.targetmode, invoker.id, "[B]vol <number>[/B] - takes a number between 0 (0%) and 200 (200%) to set the volume. 100% is 100. Defaults to 50 (50%) on startup."
return return