From b62a8e3e3e8be005ccc8be8d157a0fb92d461e31 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 25 Sep 2012 12:04:20 +0200 Subject: command: add COMMAND_RETURN_IDLE Eliminate the hack in handle_idle(). --- src/OtherCommands.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/OtherCommands.cxx') diff --git a/src/OtherCommands.cxx b/src/OtherCommands.cxx index 012441fb4..29ddd9962 100644 --- a/src/OtherCommands.cxx +++ b/src/OtherCommands.cxx @@ -310,6 +310,5 @@ handle_idle(struct client *client, /* enable "idle" mode on this client */ client_idle_wait(client, flags); - /* return value is "1" so the caller won't print "OK" */ - return (enum command_return)1; + return COMMAND_RETURN_IDLE; } -- cgit v1.2.3