Fixed volume command

This commit is contained in:
Matthieu Grieger 2014-10-23 20:42:27 -07:00
parent d583756097
commit e05344e99b

View file

@ -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