From ad92d9a89489f04f0c3bbcff4ad920cb81e0ab9d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 23 Sep 2008 23:59:55 +0200 Subject: 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 !=). --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index 0cd115cc5..3a4a218e9 100644 --- a/src/command.c +++ b/src/command.c @@ -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) { -- cgit v1.2.3