mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
e3805b63a5
commit
9cc1675e1d
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user