Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • account.c

    rfa75134 reded1f7  
    182182        account_t *a, *l = NULL;
    183183       
    184         if( acc->ic )
    185                 /* Caller should have checked, accounts still in use can't be deleted. */
    186                 return;
    187        
    188184        for( a = irc->accounts; a; a = (l=a)->next )
    189185                if( a == acc )
    190186                {
     187                        if( a->ic ) return; /* Caller should have checked, accounts still in use can't be deleted. */
     188                       
    191189                        if( l )
     190                        {
    192191                                l->next = a->next;
     192                        }
    193193                        else
     194                        {
    194195                                irc->accounts = a->next;
     196                        }
    195197                       
    196198                        while( a->set )
     
    201203                        g_free( a->user );
    202204                        g_free( a->pass );
    203                         g_free( a->server );
     205                        if( a->server ) g_free( a->server );
    204206                        if( a->reconnect )      /* This prevents any reconnect still queued to happen */
    205207                                cancel_auto_reconnect( a );
Note: See TracChangeset for help on using the changeset viewer.