Changeset 13857c6 for protocols/jabber


Ignore:
Timestamp:
2008-01-13T17:13:45Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
52744f8
Parents:
dded27d
Message:

Fixed handing of failed groupchat joins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    rdded27d r13857c6  
    7373       
    7474        room = xt_find_attr( orig, "to" );
    75         if( ( bud = jabber_buddy_by_jid( ic, room, 0 ) ) )
    76                 jabber_chat_free( jabber_chat_by_jid( ic, bud->bare_jid ) );
    77        
     75        bud = jabber_buddy_by_jid( ic, room, 0 );
    7876        err = jabber_error_parse( xt_find_node( node->children, "error" ), XMLNS_STANZA_ERROR );
    7977        if( err )
    8078        {
    81                 imcb_error( ic, "Error joining groupchat %s: %s%s%s",
    82                             bud->bare_jid, err->code, err->text ? ": " : "",
    83                             err->text ? err->text : "" );
     79                imcb_error( ic, "Error joining groupchat %s: %s%s%s", room, err->code,
     80                            err->text ? ": " : "", err->text ? err->text : "" );
    8481                jabber_error_free( err );
    8582        }
     83        if( bud )
     84                jabber_chat_free( jabber_chat_by_jid( ic, bud->bare_jid ) );
    8685       
    8786        return XT_HANDLED;
Note: See TracChangeset for help on using the changeset viewer.