diff options
Diffstat (limited to 'irc_send.c')
| -rw-r--r-- | irc_send.c | 15 | 
1 files changed, 15 insertions, 0 deletions
| @@ -224,3 +224,18 @@ void irc_send_whois( irc_user_t *iu )  	irc_send_num( irc, 318, "%s :End of /WHOIS list", iu->nick );  } + +void irc_send_who( irc_t *irc, GSList *l, const char *channel ) +{ +	while( l ) +	{ +		irc_user_t *iu = l->data; +		/* TODO(wilmer): Restore away/channel information here */ +		irc_send_num( irc, 352, "%s %s %s %s %s %c :0 %s", +		              "*", iu->user, iu->host, irc->root->host, +		              iu->nick, 'H', iu->fullname ); +		l = l->next; +	} +	 +	irc_send_num( irc, 315, "%s :End of /WHO list", channel ); +} | 
