summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-08-26 22:53:22 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-08-26 22:53:22 +0200
commit297d480ba91b45f4145932024bfde48c37ebf539 (patch)
treeb8c7401f3f6fdcf8eb9f6246a6352ff2313ddb4e
parente301eb7510e0e9911022f23c8533ff09a74f944b (diff)
Really fixed find command regression.
-rw-r--r--commands.c2
-rw-r--r--server_communication.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/commands.c b/commands.c
index 9b9e543..2cf7909 100644
--- a/commands.c
+++ b/commands.c
@@ -64,7 +64,7 @@ static void commands_find(GSocketConnection *connection, const gchar *cmd, GErro
return;
}
- gboolean remote = g_strncasecmp(data[0], "rfind", 5) == 0 ? TRUE : FALSE;
+ gboolean remote = g_strncasecmp(data[0], "findr", 5) == 0 ? FALSE : TRUE;
GSList *list = NULL;
if(g_ascii_strcasecmp(data[1], "artist") == 0) {
diff --git a/server_communication.c b/server_communication.c
index e32f6bc..64de9dc 100644
--- a/server_communication.c
+++ b/server_communication.c
@@ -79,7 +79,7 @@ gchar **server_find(struct server *server, const gchar *type, const gchar *str)
}
gchar buffer[0x400];
- g_snprintf(buffer, 0x400, "rfind %s %s\nexit\n", type, str);
+ g_snprintf(buffer, 0x400, "findr %s %s\nexit\n", type, str);
g_socket_send(socket, buffer, strlen(buffer), NULL, NULL);
gssize size;