aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-09-29 23:02:01 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2010-09-29 23:02:01 -0700
commit6ce2240e6dd88d86e90ffbfff078bc55b3f49477 (patch)
treedee2b748d31b21a5b91b26d2e734b079e319c455 /irc.c
parent858ea0166108e9cfab3cc9290fc976f041411cce (diff)
parent475206376035daf797c59e94c1e945c5b499e1a2 (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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/irc.c b/irc.c
index ed705caa..bc44c6e3 100644
--- a/irc.c
+++ b/irc.c
@@ -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 )