Changeset 63075d7 for protocols/jabber/conference.c
- Timestamp:
- 2008-02-03T23:33:18Z (16 years ago)
- Branches:
- master
- Children:
- 69ac78c
- Parents:
- 8ff0a61
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/conference.c
r8ff0a61 r63075d7 122 122 struct jabber_chat *jc = c->data; 123 123 struct xt_node *node; 124 125 jc->flags |= JCFLAG_MESSAGE_SENT; 124 126 125 127 node = xt_new_node( "body", message, NULL ); … … 295 297 struct xt_node *subject = xt_find_node( node->children, "subject" ); 296 298 struct xt_node *body = xt_find_node( node->children, "body" ); 297 struct groupchat *chat = NULL; 299 struct groupchat *chat = bud ? jabber_chat_by_jid( ic, bud->bare_jid ) : NULL; 300 struct jabber_chat *jc = chat ? chat->data : NULL; 298 301 char *s; 299 302 300 if( bud == NULL )303 if( bud == NULL || ( jc && ~jc->flags & JCFLAG_MESSAGE_SENT && bud == jc->me ) ) 301 304 { 302 305 char *nick; … … 346 349 return; 347 350 } 348 else if( ( chat = jabber_chat_by_jid( ic, bud->bare_jid ) )== NULL )351 else if( chat == NULL ) 349 352 { 350 353 /* How could this happen?? We could do kill( self, 11 )
Note: See TracChangeset
for help on using the changeset viewer.