aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-12-06 13:51:16 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-12-06 13:51:16 +0100
commitd6be22291dca329ec1463132fe0fc314b1841b1c (patch)
tree153bb03c25a44172c6a66fcbde3856374be8348d /degesch.c
parenta813babb8927c474d1d43039a66c76c42e800fdb (diff)
downloadxK-d6be22291dca329ec1463132fe0fc314b1841b1c.tar.gz
xK-d6be22291dca329ec1463132fe0fc314b1841b1c.tar.xz
xK-d6be22291dca329ec1463132fe0fc314b1841b1c.zip
degesch: /query w/o arguments just opens the query
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c2
1 files changed, 1 insertions, 1 deletions
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));