diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-09-29 23:02:01 -0700 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-09-29 23:02:01 -0700 | 
| commit | 6ce2240e6dd88d86e90ffbfff078bc55b3f49477 (patch) | |
| tree | dee2b748d31b21a5b91b26d2e734b079e319c455 /irc.c | |
| parent | 858ea0166108e9cfab3cc9290fc976f041411cce (diff) | |
| parent | 475206376035daf797c59e94c1e945c5b499e1a2 (diff) | |
Merging some fixes from pesco. Adds support for the SMP flavour used by Pidgin
(otr smpq).
Diffstat (limited to 'irc.c')
| -rw-r--r-- | irc.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| @@ -221,6 +221,10 @@ void irc_free( irc_t * irc )  	log_message( LOGLVL_INFO, "Destroying connection with fd %d", irc->fd ); +	if( irc->status & USTATUS_IDENTIFIED && set_getbool( &irc->b->set, "save_on_quit" ) )  +		if( storage_save( irc, NULL, TRUE ) != STORAGE_OK ) +			log_message( LOGLVL_WARNING, "Error while saving settings for user %s", irc->user->nick ); +	  	for( l = irc_plugins; l; l = l->next )  	{  		irc_plugin_t *p = l->data; @@ -228,10 +232,6 @@ void irc_free( irc_t * irc )  			p->irc_free( irc );  	} -	if( irc->status & USTATUS_IDENTIFIED && set_getbool( &irc->b->set, "save_on_quit" ) )  -		if( storage_save( irc, NULL, TRUE ) != STORAGE_OK ) -			log_message( LOGLVL_WARNING, "Error while saving settings for user %s", irc->user->nick ); -	  	irc_connection_list = g_slist_remove( irc_connection_list, irc );  	while( irc->queries != NULL ) | 
