command: fix command "addid"
With patch 8d2830b3, I broke "addid": it did not return the id of the new song, because of a typo in the return condition (== instead of !=).
This commit is contained in:
parent
d42959c5ce
commit
ad92d9a894
@ -477,7 +477,7 @@ static int handleAddId(struct client *client,
|
||||
int added_id;
|
||||
enum playlist_result result = addToPlaylist(argv[1], &added_id);
|
||||
|
||||
if (result == PLAYLIST_RESULT_SUCCESS)
|
||||
if (result != PLAYLIST_RESULT_SUCCESS)
|
||||
return result;
|
||||
|
||||
if (argc == 3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user