From e05344e99bc4903961cfd27e5490400fb333d25e Mon Sep 17 00:00:00 2001 From: Matthieu Grieger Date: Thu, 23 Oct 2014 20:42:27 -0700 Subject: [PATCH] Fixed volume command --- mumbledj/mumbledj.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mumbledj/mumbledj.lua b/mumbledj/mumbledj.lua index c95a3ee..27a5691 100644 --- a/mumbledj/mumbledj.lua +++ b/mumbledj/mumbledj.lua @@ -81,8 +81,8 @@ function parse_command(message) if config.OUTPUT then print(message.user.name .. " has changed the volume to the following: " .. argument .. ".") if argument ~= nil then - if config.LOWEST_VOLUME < argument < config.HIGHEST_VOLUME then - config.VOLUME = argument + if config.LOWEST_VOLUME < tonumber(argument) < config.HIGHEST_VOLUME then + config.VOLUME = tonumber(argument) else message.user:send(config.NOT_IN_VOLUME_RANGE) end