summaryrefslogtreecommitdiff
path: root/src/common/weechat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/weechat.c')
-rw-r--r--src/common/weechat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/weechat.c b/src/common/weechat.c
index 2062316d4..646276ba1 100644
--- a/src/common/weechat.c
+++ b/src/common/weechat.c
@@ -1102,7 +1102,8 @@ main (int argc, char *argv[])
plugin_end (); /* end plugin interface(s) */
#endif
server_disconnect_all (); /* disconnect from all servers */
- (void) config_write (NULL); /* save config file */
+ if (cfg_look_save_on_exit)
+ (void) config_write (NULL); /* save config file */
command_index_free (); /* free commands index */
dcc_end (); /* remove all DCC */
server_free_all (); /* free all servers */