From c2d5ce0ca213e2d25df17e080b07a3d91d330972 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Oct 2013 19:39:40 +0200 Subject: Client: move trivial functions into the Client class --- src/OtherCommands.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/OtherCommands.cxx') diff --git a/src/OtherCommands.cxx b/src/OtherCommands.cxx index 038a6448b..3e1e6fdd4 100644 --- a/src/OtherCommands.cxx +++ b/src/OtherCommands.cxx @@ -67,7 +67,7 @@ enum command_return handle_urlhandlers(Client &client, gcc_unused int argc, gcc_unused char *argv[]) { - if (client_is_local(client)) + if (client.IsLocal()) client_puts(client, "handler: file://\n"); print_supported_uri_schemes(client); return COMMAND_RETURN_OK; @@ -262,7 +262,7 @@ handle_password(Client &client, gcc_unused int argc, char *argv[]) return COMMAND_RETURN_ERROR; } - client_set_permission(client, permission); + client.SetPermission(permission); return COMMAND_RETURN_OK; } @@ -271,7 +271,7 @@ enum command_return handle_config(Client &client, gcc_unused int argc, gcc_unused char *argv[]) { - if (!client_is_local(client)) { + if (!client.IsLocal()) { command_error(client, ACK_ERROR_PERMISSION, "Command only permitted to local clients"); return COMMAND_RETURN_ERROR; -- cgit v1.2.3