Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    r3038e47 ra882d6c  
    3737        xt_add_attr( node, "xmlns", XMLNS_MUC );
    3838        node = jabber_make_packet( "presence", NULL, roomjid, node );
    39         if( password )
    40                 xt_add_child( node, xt_new_node( "password", password, NULL ) );
    4139        jabber_cache_add( ic, node, jabber_chat_join_failed );
    4240       
     
    124122        struct jabber_chat *jc = c->data;
    125123        struct xt_node *node;
    126        
    127         jc->flags |= JCFLAG_MESSAGE_SENT;
    128124       
    129125        node = xt_new_node( "body", message, NULL );
     
    299295        struct xt_node *subject = xt_find_node( node->children, "subject" );
    300296        struct xt_node *body = xt_find_node( node->children, "body" );
    301         struct groupchat *chat = bud ? jabber_chat_by_jid( ic, bud->bare_jid ) : NULL;
    302         struct jabber_chat *jc = chat ? chat->data : NULL;
     297        struct groupchat *chat = NULL;
    303298        char *s;
    304299       
    305         if( bud == NULL || ( jc && ~jc->flags & JCFLAG_MESSAGE_SENT && bud == jc->me ) )
     300        if( bud == NULL )
    306301        {
    307302                char *nick;
     
    351346                return;
    352347        }
    353         else if( chat == NULL )
     348        else if( ( chat = jabber_chat_by_jid( ic, bud->bare_jid ) ) == NULL )
    354349        {
    355350                /* How could this happen?? We could do kill( self, 11 )
Note: See TracChangeset for help on using the changeset viewer.