From 2f53ada73d7d43b538c157563ab5eb39b7592137 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 27 Mar 2010 11:16:16 -0400 Subject: /WHO --- irc_send.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'irc_send.c') diff --git a/irc_send.c b/irc_send.c index f0c3958c..97fb3071 100644 --- a/irc_send.c +++ b/irc_send.c @@ -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 ); +} -- cgit v1.2.3