From d6be22291dca329ec1463132fe0fc314b1841b1c Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Tue, 6 Dec 2016 13:51:16 +0100 Subject: degesch: /query w/o arguments just opens the query --- degesch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/degesch.c b/degesch.c index 641629c..216ea0a 100644 --- a/degesch.c +++ b/degesch.c @@ -11042,7 +11042,7 @@ handle_command_query (struct handler_args *a) if (irc_is_channel (a->s, irc_skip_statusmsg (a->s, target))) log_server_error (a->s, a->s->buffer, "Cannot query a channel"); else if (!*a->arguments) - log_server_error (a->s, a->s->buffer, "No text to send"); + buffer_activate (a->ctx, irc_get_or_make_user_buffer (a->s, target)); else { buffer_activate (a->ctx, irc_get_or_make_user_buffer (a->s, target)); -- cgit v1.2.3-70-g09d2