Changes in account.c [fa75134:eded1f7]
Legend:
- Unmodified
- Added
- Removed
-
account.c
rfa75134 reded1f7 182 182 account_t *a, *l = NULL; 183 183 184 if( acc->ic )185 /* Caller should have checked, accounts still in use can't be deleted. */186 return;187 188 184 for( a = irc->accounts; a; a = (l=a)->next ) 189 185 if( a == acc ) 190 186 { 187 if( a->ic ) return; /* Caller should have checked, accounts still in use can't be deleted. */ 188 191 189 if( l ) 190 { 192 191 l->next = a->next; 192 } 193 193 else 194 { 194 195 irc->accounts = a->next; 196 } 195 197 196 198 while( a->set ) … … 201 203 g_free( a->user ); 202 204 g_free( a->pass ); 203 g_free( a->server );205 if( a->server ) g_free( a->server ); 204 206 if( a->reconnect ) /* This prevents any reconnect still queued to happen */ 205 207 cancel_auto_reconnect( a );
Note: See TracChangeset
for help on using the changeset viewer.