Changeset e54112f for irc_send.c


Ignore:
Timestamp:
2010-05-02T23:44:33Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6a9d068
Parents:
bce78c8
Message:

Put a channel userlist in irc_channel_user elements so we can save flags
(i.e. modes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_send.c

    rbce78c8 re54112f  
    163163        for( l = ic->users; l; l = l->next )
    164164        {
    165                 irc_user_t *iu = l->data;
     165                irc_channel_user_t *icu = l->data;
     166                irc_user_t *iu = icu->iu;
    166167               
    167168                if( strlen( namelist ) + strlen( iu->nick ) > sizeof( namelist ) - 4 )
     
    243244void irc_send_who( irc_t *irc, GSList *l, const char *channel )
    244245{
     246        gboolean is_channel = strcmp( channel, "**" ) != 0;
     247       
    245248        while( l )
    246249        {
    247250                irc_user_t *iu = l->data;
     251                if( is_channel )
     252                        iu = ((irc_channel_user_t*)iu)->iu;
    248253                /* TODO(wilmer): Restore away/channel information here */
    249254                irc_send_num( irc, 352, "%s %s %s %s %s %c :0 %s",
Note: See TracChangeset for help on using the changeset viewer.