Changeset e5abfd4 for protocols/msn/sb.c


Ignore:
Timestamp:
2010-05-09T11:26:57Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
47fae0f
Parents:
bd5eee3
Message:

Safety check for yesterday's fixes: Double-check that a groupchat struct
isn't claimed already.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/sb.c

    rbd5eee3 re5abfd4  
    233233{
    234234        struct im_connection *ic = sb->ic;
     235        struct groupchat *c = NULL;
    235236        char buf[1024];
    236237       
     
    238239        g_snprintf( buf, sizeof( buf ), "MSN groupchat session %d", sb->session );
    239240        if( sb->who )
    240                 sb->chat = bee_chat_by_title( ic->bee, ic, sb->who );
    241         if( sb->chat == NULL )
     241                c = bee_chat_by_title( ic->bee, ic, sb->who );
     242        if( c && !msn_sb_by_chat( c ) )
     243                sb->chat = c;
     244        else
    242245                sb->chat = imcb_chat_new( ic, buf );
    243246       
Note: See TracChangeset for help on using the changeset viewer.