Made user skip message show no matter what

pull/18/head
Matthieu Grieger 2014-10-07 18:19:18 -04:00
parent 5b3c7449d6
commit 82e57395f3
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,9 @@
MumbleDJ Changelog
==================
### October 7, 2014
* Made user skip message show even when the target number of skips has been reached.
### September 30, 2014
* Fixed skips not working correctly.
* Fixed a crash related to private messages.

View File

@ -124,12 +124,11 @@ end
function skip(username)
if song_queue:add_skip(username) then
local skip_ratio = song_queue:count_skippers() / count_users()
piepan.me.channel:send(string.format(config.USER_SKIP_HTML, username))
if skip_ratio > config.SKIP_RATIO then
piepan.me.channel:send(config.SONG_SKIPPED_HTML)
piepan.Audio:stop()
next_song()
else
piepan.me.channel:send(string.format(config.USER_SKIP_HTML, username))
end
end
end