diff options
author | Max Kellermann <max@duempel.org> | 2012-02-13 20:00:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-02-13 20:05:31 +0100 |
commit | 1d66e714e6a8fef2e0b1abfe7005b259996b408c (patch) | |
tree | d0e0abc80eea8578197f16c3af02f3c6e5c4eb21 /src/command.c | |
parent | d98a863b82ade86ba538faf0ff9e11d483d681e4 (diff) | |
download | mpd-1d66e714e6a8fef2e0b1abfe7005b259996b408c.tar.gz mpd-1d66e714e6a8fef2e0b1abfe7005b259996b408c.tar.xz mpd-1d66e714e6a8fef2e0b1abfe7005b259996b408c.zip |
client: add function client_is_local()
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c index 854f16083..4479b803e 100644 --- a/src/command.c +++ b/src/command.c @@ -451,7 +451,7 @@ static enum command_return handle_urlhandlers(struct client *client, G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[]) { - if (client_get_uid(client) > 0) + if (client_is_local(client)) client_puts(client, "handler: file://\n"); print_supported_uri_schemes(client); return COMMAND_RETURN_OK; |