Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    rbdad407 rb2c062d  
    234234                            ( strcmp( s, XMLNS_MUC_USER ) == 0 ) )
    235235                        {
    236                                 struct xt_node *item;
    237                                
    238                                 item = xt_find_node( c->children, "item" );
    239                                 if( ( s = xt_find_attr( item, "jid" ) ) )
     236                                c = xt_find_node( c->children, "item" );
     237                                if( ( s = xt_find_attr( c, "jid" ) ) )
    240238                                {
    241239                                        /* Yay, found what we need. :-) */
     
    285283        else if( type ) /* type can only be NULL or "unavailable" in this function */
    286284        {
    287                 if( ( bud->flags & JBFLAG_IS_CHATROOM ) && bud->ext_jid )
    288                 {
    289                         s = strchr( bud->ext_jid, '/' );
    290                         if( s ) *s = 0;
    291                         imcb_chat_remove_buddy( chat, bud->ext_jid, NULL );
    292                         if( bud != jc->me && bud->flags & JBFLAG_IS_ANONYMOUS )
    293                                 imcb_remove_buddy( ic, bud->ext_jid, NULL );
    294                         if( s ) *s = '/';
    295                 }
     285                s = strchr( bud->ext_jid, '/' );
     286                if( s ) *s = 0;
     287                imcb_chat_remove_buddy( chat, bud->ext_jid, NULL );
     288                if( bud != jc->me && bud->flags & JBFLAG_IS_ANONYMOUS )
     289                        imcb_remove_buddy( ic, bud->ext_jid, NULL );
     290                if( s ) *s = '/';
    296291               
    297292                if( bud == jc->me )
Note: See TracChangeset for help on using the changeset viewer.