1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

/WHOIS -<server tag> is supported now.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3233 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2004-03-23 20:47:51 +00:00 committed by cras
parent 622be3f822
commit 501dc3494e

View File

@ -345,7 +345,7 @@ static char *get_redirect_nicklist(const char *nicks, int *free)
return ret;
}
/* SYNTAX: WHOIS [<server>] [<nicks>] */
/* SYNTAX: WHOIS [-<server tag>] [<server>] [<nicks>] */
static void cmd_whois(const char *data, IRC_SERVER_REC *server,
WI_ITEM_REC *item)
{
@ -356,10 +356,19 @@ static void cmd_whois(const char *data, IRC_SERVER_REC *server,
CMD_IRC_SERVER(server);
if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_OPTIONS,
if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_OPTIONS |
PARAM_FLAG_UNKNOWN_OPTIONS,
"whois", &optlist, &qserver, &query))
return;
/* -<server tag> */
server = IRC_SERVER(cmd_options_get_server(NULL, optlist,
SERVER(server)));
if (server == NULL) {
cmd_params_free(free_arg);
return;
}
if (*query == '\0') {
query = qserver;
qserver = "";