degesch: /query w/o arguments just opens the query

This commit is contained in:
Přemysl Eric Janouch 2016-12-06 13:51:16 +01:00
parent a813babb89
commit d6be22291d
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 1 deletions

View File

@ -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));