aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_send.c')
-rw-r--r--irc_send.c15
1 files changed, 15 insertions, 0 deletions
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 );
+}