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:
parent
622be3f822
commit
501dc3494e
@ -345,7 +345,7 @@ static char *get_redirect_nicklist(const char *nicks, int *free)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SYNTAX: WHOIS [<server>] [<nicks>] */
|
/* SYNTAX: WHOIS [-<server tag>] [<server>] [<nicks>] */
|
||||||
static void cmd_whois(const char *data, IRC_SERVER_REC *server,
|
static void cmd_whois(const char *data, IRC_SERVER_REC *server,
|
||||||
WI_ITEM_REC *item)
|
WI_ITEM_REC *item)
|
||||||
{
|
{
|
||||||
@ -356,10 +356,19 @@ static void cmd_whois(const char *data, IRC_SERVER_REC *server,
|
|||||||
|
|
||||||
CMD_IRC_SERVER(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))
|
"whois", &optlist, &qserver, &query))
|
||||||
return;
|
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') {
|
if (*query == '\0') {
|
||||||
query = qserver;
|
query = qserver;
|
||||||
qserver = "";
|
qserver = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user