mirror of https://github.com/icedream/ts3bot.git
Also check vol against null.
parent
8fe17abdf8
commit
39f5ec1ec0
2
app.iced
2
app.iced
|
@ -316,7 +316,7 @@ ts3clientService.on "started", (ts3proc) =>
|
||||||
|
|
||||||
vol = parseInt input
|
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 <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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue