Skip to content

Commit

Permalink
fix: dont-play option of search command
Browse files Browse the repository at this point in the history
  • Loading branch information
mischah committed Jul 20, 2017
1 parent e2b229d commit c35865e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -129,7 +129,7 @@ function startSearch(searchTerm, opts, callback) {
var amount = parseInt(data[1], 10);
var result;
if (err === null && amount) {
if (!opts.dontplay) {
if (!opts['dont-play']) {
startPlaylist(playlist, amount, function (response) {
result = callback(response);
});
Expand Down

0 comments on commit c35865e

Please sign in to comment.