Changeset 36577aa for protocols/msn/sb.c


Ignore:
Timestamp:
2010-05-09T00:28:38Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
75610c3
Parents:
eb37735
Message:

Create the struct groupchat early on in msn_chat_with() so the new chat
setup method works properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/sb.c

    reb37735 r36577aa  
    237237        /* Create the groupchat structure. */
    238238        g_snprintf( buf, sizeof( buf ), "MSN groupchat session %d", sb->session );
    239         sb->chat = imcb_chat_new( ic, buf );
     239        if( sb->who )
     240                sb->chat = bee_chat_by_title( ic->bee, ic, sb->who );
     241        if( sb->chat == NULL )
     242                sb->chat = imcb_chat_new( ic, buf );
    240243       
    241244        /* Populate the channel. */
Note: See TracChangeset for help on using the changeset viewer.