summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-09-19 15:07:57 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-09-19 15:07:57 +0000
commit1c7fc48b082a854ed33b35be645141ead1f91072 (patch)
tree2a98852d7005a306bc267d963dd7a4dc7318055a
parentf31b59b48b8bba81f2a0396e87eded5a616ab567 (diff)
downloadirssi-1c7fc48b082a854ed33b35be645141ead1f91072.zip
"/QUERY" no longer unqueries, but just complains about not getting enough
parameters. Lets see how many people dislike this change... git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2931 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-common/core/fe-queries.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/fe-common/core/fe-queries.c b/src/fe-common/core/fe-queries.c
index 762aa034..9d8afb94 100644
--- a/src/fe-common/core/fe-queries.c
+++ b/src/fe-common/core/fe-queries.c
@@ -227,13 +227,7 @@ static void cmd_query(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
PARAM_FLAG_OPTIONS | PARAM_FLAG_UNKNOWN_OPTIONS,
"query", &optlist, &nick, &msg))
return;
-
- if (*nick == '\0') {
- /* remove current query */
- cmd_unquery("", server, item);
- cmd_params_free(free_arg);
- return;
- }
+ if (*nick == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
server = cmd_options_get_server("query", optlist, server);
if (server == NULL) {