Changeset 4eb4c0f for protocols/jabber/conference.c
- Timestamp:
- 2008-02-16T17:15:31Z (17 years ago)
- Branches:
- master
- Children:
- fd9fa52
- Parents:
- 8961950 (diff), ca60550 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/conference.c
r8961950 r4eb4c0f 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 ) ); 39 41 jabber_cache_add( ic, node, jabber_chat_join_failed ); 40 42 … … 122 124 struct jabber_chat *jc = c->data; 123 125 struct xt_node *node; 126 127 jc->flags |= JCFLAG_MESSAGE_SENT; 124 128 125 129 node = xt_new_node( "body", message, NULL ); … … 295 299 struct xt_node *subject = xt_find_node( node->children, "subject" ); 296 300 struct xt_node *body = xt_find_node( node->children, "body" ); 297 struct groupchat *chat = NULL; 301 struct groupchat *chat = bud ? jabber_chat_by_jid( ic, bud->bare_jid ) : NULL; 302 struct jabber_chat *jc = chat ? chat->data : NULL; 298 303 char *s; 299 304 300 if( bud == NULL )305 if( bud == NULL || ( jc && ~jc->flags & JCFLAG_MESSAGE_SENT && bud == jc->me ) ) 301 306 { 302 307 char *nick; … … 346 351 return; 347 352 } 348 else if( ( chat = jabber_chat_by_jid( ic, bud->bare_jid ) )== NULL )353 else if( chat == NULL ) 349 354 { 350 355 /* How could this happen?? We could do kill( self, 11 )
Note: See TracChangeset
for help on using the changeset viewer.