aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-08-27 05:22:50 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-08-27 05:22:50 +0100
commitb78c4b9e3f3ec11b4ff560f579da764846793a00 (patch)
treed8c31f431ae525c1151a9e1061092e0be51c1f06 /irc_send.c
parentea728e661f521405c2883c70865d563750223770 (diff)
parent3f10fad9408844802fcfa3caf3e65e248185f5af (diff)
Merging minor mainline changes.
Diffstat (limited to 'irc_send.c')
-rw-r--r--irc_send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/irc_send.c b/irc_send.c
index 76b54dd1..fa4e6815 100644
--- a/irc_send.c
+++ b/irc_send.c
@@ -263,7 +263,7 @@ void irc_send_whois( irc_user_t *iu )
void irc_send_who( irc_t *irc, GSList *l, const char *channel )
{
- gboolean is_channel = strcmp( channel, "**" ) != 0;
+ gboolean is_channel = strchr( CTYPES, channel[0] ) != NULL;
while( l )
{
@@ -272,7 +272,7 @@ void irc_send_who( irc_t *irc, GSList *l, const char *channel )
iu = ((irc_channel_user_t*)iu)->iu;
/* TODO(wilmer): Restore away/channel information here */
irc_send_num( irc, 352, "%s %s %s %s %s %c :0 %s",
- channel ? : "*", iu->user, iu->host, irc->root->host,
+ is_channel ? channel : "*", iu->user, iu->host, irc->root->host,
iu->nick, iu->flags & IRC_USER_AWAY ? 'G' : 'H',
iu->fullname );
l = l->next;