Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    re73a501 r58f5ef7  
    9292{
    9393        char *normalized = jabber_normalize( name );
     94        GSList *l;
    9495        struct groupchat *ret;
    9596        struct jabber_chat *jc;
    9697       
    97         for( ret = ic->groupchats; ret; ret = ret->next )
    98         {
     98        for( l = ic->groupchats; l; l = l->next )
     99        {
     100                ret = l->data;
    99101                jc = ret->data;
    100102                if( strcmp( normalized, jc->name ) == 0 )
     
    103105        g_free( normalized );
    104106       
    105         return ret;
     107        return l ? ret : NULL;
    106108}
    107109
     
    272274                }
    273275               
    274                 if( bud != jc->me && bud->flags & JBFLAG_IS_ANONYMOUS )
    275                 {
    276                         /* If JIDs are anonymized, add them to the local
    277                            list for the duration of this chat. */
     276                if( bud != jc->me )
     277                {
    278278                        imcb_add_buddy( ic, bud->ext_jid, NULL );
    279279                        imcb_buddy_nick_hint( ic, bud->ext_jid, bud->resource );
Note: See TracChangeset for help on using the changeset viewer.