Permalink
Browse files

fixing issue with voting only when empty playlist was active

  • Loading branch information...
1 parent f6baf14 commit 8100861b1d135a8f682a1ed682b1e78ac58cb76e Mac Angell committed Mar 12, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/DjAddOn.js
View
@@ -229,12 +229,13 @@ module.exports = function DjAddOn(bot) {
if (active.name === playlistName) {
to = emptyPlaylistName;
bot.playlistSwitch(emptyPlaylistName);
+ activePlaylist = emptyPlaylistName;
}
else if (active.name === emptyPlaylistName) {
to = playlistName;
bot.playlistSwitch(playlistName);
+ activePlaylist = playlistName;
}
- activePlaylist = active.name;
replyFunc('Switched to playlist: ' + to);
}
});

0 comments on commit 8100861

Please sign in to comment.