Changeset b9e020a for irc_channel.c


Ignore:
Timestamp:
2010-03-27T03:04:35Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
63a520b
Parents:
4be8239
Message:

Added JOIN, NAMES and PART commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    r4be8239 rb9e020a  
    4545}
    4646
     47irc_channel_t *irc_channel_by_name( irc_t *irc, const char *name )
     48{
     49        GSList *l;
     50       
     51        for( l = irc->channels; l; l = l->next )
     52        {
     53                irc_channel_t *ic = l->data;
     54               
     55                if( name[0] == ic->name[0] && nick_cmp( name + 1, ic->name + 1 ) == 0 )
     56                        return ic;
     57        }
     58       
     59        return NULL;
     60}
     61
    4762int irc_channel_add_user( irc_channel_t *ic, irc_user_t *iu )
    4863{
Note: See TracChangeset for help on using the changeset viewer.