1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-07 02:54:19 -04:00

/NAMES needs only one argument, fixes "/NAMES -ops #a " where irssi thought

the channel was "#a " and instead of "#a"..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1478 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-05-11 14:18:18 +00:00 committed by cras
parent e3805b63a5
commit 9cc1675e1d

View File

@ -487,8 +487,8 @@ static void cmd_names(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
if (!IS_SERVER(server) || !server->connected)
cmd_return_error(CMDERR_NOT_CONNECTED);
if (!cmd_get_params(data, &free_arg, 1 | PARAM_FLAG_OPTIONS |
PARAM_FLAG_GETREST, "names", &optlist, &channel))
if (!cmd_get_params(data, &free_arg, 1 | PARAM_FLAG_OPTIONS,
"names", &optlist, &channel))
return;
if (strcmp(channel, "*") == 0 || *channel == '\0') {