From ab49fdcec9a09df839ec488e570672f2dd904dc7 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 10 Dec 2005 15:50:49 +0100 Subject: Use helper functions rather then the backends directly. This will be used for transparent upgrade support later on. --- irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'irc.c') diff --git a/irc.c b/irc.c index 5601e314..998e7e51 100644 --- a/irc.c +++ b/irc.c @@ -160,7 +160,7 @@ void irc_free(irc_t * irc) log_message( LOGLVL_INFO, "Destroying connection with fd %d", irc->fd ); if( irc->status >= USTATUS_IDENTIFIED && set_getint( irc, "save_on_quit" ) ) - if( !global.storage->save( irc, TRUE ) ) + if( !storage_save( irc, TRUE ) ) irc_usermsg( irc, "Error while saving settings!" ); if( irc->ping_source_id > 0 ) -- cgit v1.2.3 From b73ac9c35fb53203b8d0668251dfb66096883863 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 14 Dec 2005 00:05:27 +0100 Subject: Add support for 'primary' and 'migrate' account storages. Fix two bugs in the text storage backend that were introduced by my previous changes. --- irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'irc.c') diff --git a/irc.c b/irc.c index 998e7e51..d976410e 100644 --- a/irc.c +++ b/irc.c @@ -160,7 +160,7 @@ void irc_free(irc_t * irc) log_message( LOGLVL_INFO, "Destroying connection with fd %d", irc->fd ); if( irc->status >= USTATUS_IDENTIFIED && set_getint( irc, "save_on_quit" ) ) - if( !storage_save( irc, TRUE ) ) + if( storage_save( irc, TRUE ) != STORAGE_OK ) irc_usermsg( irc, "Error while saving settings!" ); if( irc->ping_source_id > 0 ) -- cgit v1.2.3