diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-01-20 16:15:49 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-01-20 16:15:49 +0100 | 
| commit | f73b9697f9be18e04ec7458634520f9dd2e2432f (patch) | |
| tree | bc85b7818c6f76e584a92a067b3b2091d6c14384 /bitlbee.c | |
| parent | 55ec2d66f04d1ea96e180c5a46e90a4294dea0b1 (diff) | |
Renamed commands.c, got rid of return values in all command functions.
Diffstat (limited to 'bitlbee.c')
| -rw-r--r-- | bitlbee.c | 8 | 
1 files changed, 5 insertions, 3 deletions
| @@ -166,10 +166,12 @@ gboolean bitlbee_io_current_client_read( GIOChannel *source, GIOCondition condit  		strcpy( ( irc->readbuffer + strlen( irc->readbuffer ) ), line );  	} -	if( !irc_process( irc ) ) +	irc_process( irc ); +	 +	/* Normally, irc_process() shouldn't call irc_free() but irc_abort(). Just in case: */ +	if( !g_slist_find( irc_connection_list, irc ) )  	{ -		log_message( LOGLVL_INFO, "Destroying connection with fd %d.", irc->fd ); -		irc_abort( irc ); +		log_message( LOGLVL_WARNING, "Abnormal termination of connection with fd %d.", irc->fd );  		return FALSE;  	}  | 
