Fixed incorrect value being shown in volume confirmation
This commit is contained in:
parent
b1bf378921
commit
c156d4051f
|
@ -1,6 +1,9 @@
|
|||
MumbleDJ Changelog
|
||||
==================
|
||||
|
||||
### November 9, 2014
|
||||
* Fixed volume changed message showing wrong value.
|
||||
|
||||
### October 24, 2014
|
||||
* Switched volume change method. The volume is now changed directly through `piepan` instead of `ffmpeg`.
|
||||
* Fixed another bug with volume changing.
|
||||
|
|
|
@ -134,7 +134,7 @@ config.NO_ARGUMENT = "The command you issued requires an argument and you did no
|
|||
config.NOT_IN_VOLUME_RANGE = "The volume you tried to supply is not in the allowed volume range. The value must be between " .. config.LOWEST_VOLUME .. " and " .. config.HIGHEST_VOLUME .. "."
|
||||
|
||||
-- Message shown to users when they successfully change the volume.
|
||||
config.VOLUME_SUCCESS = "You have successfully changed the volume to the following: " .. config.VOLUME .. "."
|
||||
config.VOLUME_SUCCESS = "You have successfully changed the volume to the following: %s."
|
||||
|
||||
|
||||
----------------------
|
||||
|
|
|
@ -82,7 +82,7 @@ function parse_command(message)
|
|||
if argument ~= nil then
|
||||
if config.LOWEST_VOLUME <= tonumber(argument) and tonumber(argument) <= config.HIGHEST_VOLUME then
|
||||
config.VOLUME = tonumber(argument)
|
||||
message.user:send(config.VOLUME_SUCCESS)
|
||||
message.user:send(string.format(config.VOLUME_SUCCESS, argument))
|
||||
else
|
||||
message.user:send(config.NOT_IN_VOLUME_RANGE)
|
||||
end
|
||||
|
|
Reference in a new issue