Made user skip message show no matter what
This commit is contained in:
parent
5b3c7449d6
commit
82e57395f3
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue