diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-25 01:18:27 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-25 01:18:27 +0100 |
commit | a72af0dc9b76451f5aa57ac9443267a97c794f95 (patch) | |
tree | 0120458f36dc0ad4ec93582673d7f05073d6f90f /irc_send.c | |
parent | bd599b9aeabee36ac6fdb379ca09aec27cce13a4 (diff) |
Fix /WHO on single nicks.
Diffstat (limited to 'irc_send.c')
-rw-r--r-- | irc_send.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |