diff options
author | Timo Sirainen <cras@irssi.org> | 2002-10-06 16:20:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-10-06 16:20:42 +0000 |
commit | 3a7f566173da01a5ffb1be8a7d4980cdd4d096f4 (patch) | |
tree | 7ff5ccef23b84a6e4e62e91d5608996e9de8f19d | |
parent | 145b91bf6c8641d5ea918c09c17e95ec866eccb1 (diff) | |
download | irssi-3a7f566173da01a5ffb1be8a7d4980cdd4d096f4.zip |
/QUERY reverted back.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2936 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-common/core/fe-queries.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-queries.c b/src/fe-common/core/fe-queries.c index 9d8afb94..762aa034 100644 --- a/src/fe-common/core/fe-queries.c +++ b/src/fe-common/core/fe-queries.c @@ -227,7 +227,13 @@ 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') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); + + if (*nick == '\0') { + /* remove current query */ + cmd_unquery("", server, item); + cmd_params_free(free_arg); + return; + } server = cmd_options_get_server("query", optlist, server); if (server == NULL) { |