summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-07 18:35:15 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-07 18:35:15 +0000
commitf4d7561660912422b010a2aaa1323086cc80d681 (patch)
treec79626494d6b67efa8c9b94b131c763195a82c1d /src
parent4282f07347d64d14aa5c6b9614f392518c2f13c1 (diff)
downloadirssi-f4d7561660912422b010a2aaa1323086cc80d681.zip
/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
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/irc-commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c
index 23c9ad07..b2571896 100644
--- a/src/irc/core/irc-commands.c
+++ b/src/irc/core/irc-commands.c
@@ -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);
if (strcmp(channel, "*") == 0 || *channel == '\0') {
- if (!irc_item_check(item))
+ if (!irc_item_channel(item))
cmd_return_error(CMDERR_NOT_JOINED);
- data = item->name;
+ channel = item->name;
}
if (strcmp(channel, "**") == 0) {
/* ** displays all nicks.. */