From f4d7561660912422b010a2aaa1323086cc80d681 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 7 Jun 2000 18:35:15 +0000 Subject: [PATCH] /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 --- src/irc/core/irc-commands.c | 4 ++-- 1 file 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.. */