Commit ad92d9a8 authored by Max Kellermann's avatar Max Kellermann

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 !=).
parent d42959c5
...@@ -477,7 +477,7 @@ static int handleAddId(struct client *client, ...@@ -477,7 +477,7 @@ static int handleAddId(struct client *client,
int added_id; int added_id;
enum playlist_result result = addToPlaylist(argv[1], &added_id); enum playlist_result result = addToPlaylist(argv[1], &added_id);
if (result == PLAYLIST_RESULT_SUCCESS) if (result != PLAYLIST_RESULT_SUCCESS)
return result; return result;
if (argc == 3) { if (argc == 3) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment