degesch: /query w/o arguments just opens the query
This commit is contained in:
parent
a813babb89
commit
d6be22291d
|
@ -11042,7 +11042,7 @@ handle_command_query (struct handler_args *a)
|
||||||
if (irc_is_channel (a->s, irc_skip_statusmsg (a->s, target)))
|
if (irc_is_channel (a->s, irc_skip_statusmsg (a->s, target)))
|
||||||
log_server_error (a->s, a->s->buffer, "Cannot query a channel");
|
log_server_error (a->s, a->s->buffer, "Cannot query a channel");
|
||||||
else if (!*a->arguments)
|
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
|
else
|
||||||
{
|
{
|
||||||
buffer_activate (a->ctx, irc_get_or_make_user_buffer (a->s, target));
|
buffer_activate (a->ctx, irc_get_or_make_user_buffer (a->s, target));
|
||||||
|
|
Loading…
Reference in New Issue