aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2005-12-14 00:21:21 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2005-12-14 00:21:21 +0100
commit6aaa2213588f7c4c00a68c5622f6974679eaf196 (patch)
tree7aad536700d387bacd3003927e9ac3c531616259 /irc.c
parentab4afbab829a4a5bf520d4e1425a743cdb8c4865 (diff)
parentd3307e281afdbed22a561eb2cd73f97a03e3073d (diff)
More work on the storage abstraction layer from Jelmer.
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/irc.c b/irc.c
index 5601e314..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( !global.storage->save( irc, TRUE ) )
+ if( storage_save( irc, TRUE ) != STORAGE_OK )
irc_usermsg( irc, "Error while saving settings!" );
if( irc->ping_source_id > 0 )