Changeset 2f53ada for irc_send.c


Ignore:
Timestamp:
2010-03-27T15:16:16Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
280c56a
Parents:
b919363
Message:

/WHO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_send.c

    rb919363 r2f53ada  
    225225        irc_send_num( irc, 318, "%s :End of /WHOIS list", iu->nick );
    226226}
     227
     228void irc_send_who( irc_t *irc, GSList *l, const char *channel )
     229{
     230        while( l )
     231        {
     232                irc_user_t *iu = l->data;
     233                /* TODO(wilmer): Restore away/channel information here */
     234                irc_send_num( irc, 352, "%s %s %s %s %s %c :0 %s",
     235                              "*", iu->user, iu->host, irc->root->host,
     236                              iu->nick, 'H', iu->fullname );
     237                l = l->next;
     238        }
     239       
     240        irc_send_num( irc, 315, "%s :End of /WHO list", channel );
     241}
Note: See TracChangeset for help on using the changeset viewer.