Changeset 549545b


Ignore:
Timestamp:
2008-12-13T20:02:55Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6d5eb72
Parents:
77fc000c
Message:

Checking if acc->prpl->chat_join actually exists before using it. :-/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chat.c

    r77fc000c r549545b  
    3030        struct chat *c, *l;
    3131        set_t *s;
     32
     33        if( acc->prpl->chat_join == NULL )
     34                return NULL;
    3235       
    3336        if( !chat_chanok( channel ) )
     
    178181                nick = irc->nick;
    179182       
    180         if( ( gc = c->acc->prpl->chat_join( c->acc->ic, c->handle, nick, password ) ) )
     183        if( c->acc->prpl->chat_join &&
     184            ( gc = c->acc->prpl->chat_join( c->acc->ic, c->handle, nick, password ) ) )
    181185        {
    182186                g_free( gc->channel );
Note: See TracChangeset for help on using the changeset viewer.