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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user