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:
Max Kellermann 2008-09-23 23:59:55 +02:00
parent d42959c5ce
commit ad92d9a894
1 changed files with 1 additions and 1 deletions

View File

@ -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) {