diff --git a/CHANGELOG.md b/CHANGELOG.md index 43e2fe4..f570490 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/mumbledj/config.lua b/mumbledj/config.lua index ba09091..377ff4e 100644 --- a/mumbledj/config.lua +++ b/mumbledj/config.lua @@ -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." ---------------------- diff --git a/mumbledj/mumbledj.lua b/mumbledj/mumbledj.lua index b37a1b3..baf2d7b 100644 --- a/mumbledj/mumbledj.lua +++ b/mumbledj/mumbledj.lua @@ -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