Changeset 2bebe15 for protocols


Ignore:
Timestamp:
2008-09-28T00:18:21Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e180c59
Parents:
ced1e17
Message:

Fixed one crash bug in Yahoo! chatroom invitation handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    rced1e17 r2bebe15  
    790790{
    791791        struct byahoo_conf_invitation *inv = data;
    792        
    793         yahoo_conference_logon( inv->yid, NULL, inv->members, inv->name );
    794         imcb_chat_add_buddy( inv->c, inv->ic->acc->user );
     792        struct groupchat *b;
     793       
     794        for( b = inv->ic->groupchats; b; b = b->next )
     795                if( b == inv->c )
     796                        break;
     797       
     798        if( b != NULL )
     799        {
     800                yahoo_conference_logon( inv->yid, NULL, inv->members, inv->name );
     801                imcb_chat_add_buddy( inv->c, inv->ic->acc->user );
     802        }
     803        else
     804        {
     805                imcb_log( inv->ic, "Duplicate/corrupted invitation to `%s'.", inv->name );
     806        }
     807       
    795808        g_free( inv->name );
    796809        g_free( inv );
Note: See TracChangeset for help on using the changeset viewer.