mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/WHO and /WHO * should disply who list of the active channel.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@302 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4282f07347
commit
f4d7561660
@ -398,10 +398,10 @@ static void cmd_who(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item)
|
|||||||
params = cmd_get_params(data, 3 | PARAM_FLAG_OPTARGS | PARAM_FLAG_GETREST, &args, &channel, &rest);
|
params = cmd_get_params(data, 3 | PARAM_FLAG_OPTARGS | PARAM_FLAG_GETREST, &args, &channel, &rest);
|
||||||
|
|
||||||
if (strcmp(channel, "*") == 0 || *channel == '\0') {
|
if (strcmp(channel, "*") == 0 || *channel == '\0') {
|
||||||
if (!irc_item_check(item))
|
if (!irc_item_channel(item))
|
||||||
cmd_return_error(CMDERR_NOT_JOINED);
|
cmd_return_error(CMDERR_NOT_JOINED);
|
||||||
|
|
||||||
data = item->name;
|
channel = item->name;
|
||||||
}
|
}
|
||||||
if (strcmp(channel, "**") == 0) {
|
if (strcmp(channel, "**") == 0) {
|
||||||
/* ** displays all nicks.. */
|
/* ** displays all nicks.. */
|
||||||
|
Loading…
Reference in New Issue
Block a user