From 82e57395f3d89f992fd3fff81a24030d8483d898 Mon Sep 17 00:00:00 2001 From: Matthieu Grieger Date: Tue, 7 Oct 2014 18:19:18 -0400 Subject: [PATCH] Made user skip message show no matter what --- CHANGELOG.md | 3 +++ mumbledj/mumbledj.lua | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb2faa7..cad930f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/mumbledj/mumbledj.lua b/mumbledj/mumbledj.lua index 3c81800..63575b8 100644 --- a/mumbledj/mumbledj.lua +++ b/mumbledj/mumbledj.lua @@ -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