diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-07-18 16:55:19 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-07-18 16:55:19 +0000 |
commit | 5699898d5bf8a281cdd1691ce1bb45949b23a254 (patch) | |
tree | c7c516169bfc7e0625befa3efea21a4c1300619d /src/common/command.c | |
parent | a0e5c4567b7c22586c9e14b7f39fadf1a53dd7a5 (diff) | |
download | weechat-5699898d5bf8a281cdd1691ce1bb45949b23a254.zip |
Added "look_save_on_exit" option (patch from Emanuele Giaquinta)
Diffstat (limited to 'src/common/command.c')
-rw-r--r-- | src/common/command.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/command.c b/src/common/command.c index edb57abe2..d8d5909a7 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -3458,7 +3458,6 @@ weechat_cmd_set (t_irc_server *server, t_irc_channel *channel, { if (config_option_set_value (ptr_option, value) == 0) { - (void) (ptr_option->handler_change()); gui_printf (NULL, "\n"); gui_printf (NULL, "%s[%s%s%s]\n", GUI_COLOR(COLOR_WIN_CHAT_DARK), @@ -3466,6 +3465,7 @@ weechat_cmd_set (t_irc_server *server, t_irc_channel *channel, config_get_section (ptr_option), GUI_COLOR(COLOR_WIN_CHAT_DARK)); weechat_cmd_set_display_option (ptr_option, NULL, NULL); + (void) (ptr_option->handler_change()); } else { @@ -3982,7 +3982,8 @@ weechat_cmd_upgrade (t_irc_server *server, t_irc_channel *channel, #ifdef PLUGINS plugin_end (); #endif - (void) config_write (NULL); + if (cfg_look_save_on_exit) + (void) config_write (NULL); gui_main_end (); fifo_remove (); weechat_log_close (); |