Changes in protocols/jabber/conference.c [3038e47:a882d6c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/conference.c
r3038e47 ra882d6c 37 37 xt_add_attr( node, "xmlns", XMLNS_MUC ); 38 38 node = jabber_make_packet( "presence", NULL, roomjid, node ); 39 if( password )40 xt_add_child( node, xt_new_node( "password", password, NULL ) );41 39 jabber_cache_add( ic, node, jabber_chat_join_failed ); 42 40 … … 124 122 struct jabber_chat *jc = c->data; 125 123 struct xt_node *node; 126 127 jc->flags |= JCFLAG_MESSAGE_SENT;128 124 129 125 node = xt_new_node( "body", message, NULL ); … … 299 295 struct xt_node *subject = xt_find_node( node->children, "subject" ); 300 296 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; 303 298 char *s; 304 299 305 if( bud == NULL || ( jc && ~jc->flags & JCFLAG_MESSAGE_SENT && bud == jc->me ))300 if( bud == NULL ) 306 301 { 307 302 char *nick; … … 351 346 return; 352 347 } 353 else if( chat== NULL )348 else if( ( chat = jabber_chat_by_jid( ic, bud->bare_jid ) ) == NULL ) 354 349 { 355 350 /* How could this happen?? We could do kill( self, 11 )
Note: See TracChangeset
for help on using the changeset viewer.