Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    r58f5ef7 r41e0c00  
    274274                }
    275275               
    276                 if( bud != jc->me )
    277                 {
     276                if( bud != jc->me && bud->flags & JBFLAG_IS_ANONYMOUS )
     277                {
     278                        /* If JIDs are anonymized, add them to the local
     279                           list for the duration of this chat. */
    278280                        imcb_add_buddy( ic, bud->ext_jid, NULL );
    279281                        imcb_buddy_nick_hint( ic, bud->ext_jid, bud->resource );
     
    309311        struct jabber_chat *jc = chat ? chat->data : NULL;
    310312        char *s;
     313       
     314        if( subject && chat )
     315        {
     316                s = bud ? strchr( bud->ext_jid, '/' ) : NULL;
     317                if( s ) *s = 0;
     318                imcb_chat_topic( chat, bud ? bud->ext_jid : NULL, subject->text_len > 0 ?
     319                                 subject->text : NULL, jabber_get_timestamp( node ) );
     320                if( s ) *s = '/';
     321        }
    311322       
    312323        if( bud == NULL || ( jc && ~jc->flags & JCFLAG_MESSAGE_SENT && bud == jc->me ) )
     
    364375                return;
    365376        }
    366        
    367         if( subject )
    368         {
    369                 s = strchr( bud->ext_jid, '/' );
    370                 if( s ) *s = 0;
    371                 imcb_chat_topic( chat, bud->ext_jid, subject->text_len > 0 ?
    372                                  subject->text : NULL, jabber_get_timestamp( node ) );
    373                 if( s ) *s = '/';
    374         }
    375377        if( body && body->text_len > 0 )
    376378        {
Note: See TracChangeset for help on using the changeset viewer.