diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-03-17 08:17:41 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-03-17 08:17:41 +0100 |
commit | 8cf3b09d81e662ec292cb4ce57481f7b9c7d3e66 (patch) | |
tree | 914fc51df34117ed123f32a108bf1d377b91296f /src/plugins | |
parent | 939c3f7cd048c8765ab7234a37aadc43aa36e942 (diff) | |
download | weechat-8cf3b09d81e662ec292cb4ce57481f7b9c7d3e66.zip |
scripts: hide message when the eval script is unloaded
Related to commit 8fbbe8b0d509df26ff86ca8cd7fe4b2205c6d15e.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/guile/weechat-guile.c | 2 | ||||
-rw-r--r-- | src/plugins/lua/weechat-lua.c | 2 | ||||
-rw-r--r-- | src/plugins/perl/weechat-perl.c | 2 | ||||
-rw-r--r-- | src/plugins/python/weechat-python.c | 2 | ||||
-rw-r--r-- | src/plugins/ruby/weechat-ruby.c | 2 |
5 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c index bc5c39d96..1019aba5f 100644 --- a/src/plugins/guile/weechat-guile.c +++ b/src/plugins/guile/weechat-guile.c @@ -755,7 +755,9 @@ weechat_guile_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input, if (!weechat_config_boolean (guile_config_look_eval_keep_context)) { + guile_quiet = 1; weechat_guile_unload (guile_script_eval); + guile_quiet = 0; guile_script_eval = NULL; } diff --git a/src/plugins/lua/weechat-lua.c b/src/plugins/lua/weechat-lua.c index 7229551b4..c7c86b76c 100644 --- a/src/plugins/lua/weechat-lua.c +++ b/src/plugins/lua/weechat-lua.c @@ -855,7 +855,9 @@ weechat_lua_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input, if (!weechat_config_boolean (lua_config_look_eval_keep_context)) { + lua_quiet = 1; weechat_lua_unload (lua_script_eval); + lua_quiet = 0; lua_script_eval = NULL; } diff --git a/src/plugins/perl/weechat-perl.c b/src/plugins/perl/weechat-perl.c index 4b8bb6116..f5ca29a0f 100644 --- a/src/plugins/perl/weechat-perl.c +++ b/src/plugins/perl/weechat-perl.c @@ -847,7 +847,9 @@ weechat_perl_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input, if (!weechat_config_boolean (perl_config_look_eval_keep_context)) { + perl_quiet = 1; weechat_perl_unload (perl_script_eval); + perl_quiet = 0; perl_script_eval = NULL; } diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c index f8cc8752b..59e383c5d 100644 --- a/src/plugins/python/weechat-python.c +++ b/src/plugins/python/weechat-python.c @@ -1100,7 +1100,9 @@ weechat_python_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input, if (!weechat_config_boolean (python_config_look_eval_keep_context)) { + python_quiet = 1; weechat_python_unload (python_script_eval); + python_quiet = 0; python_script_eval = NULL; } diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c index d593ad79e..64ea33640 100644 --- a/src/plugins/ruby/weechat-ruby.c +++ b/src/plugins/ruby/weechat-ruby.c @@ -900,7 +900,9 @@ weechat_ruby_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input, if (!weechat_config_boolean (ruby_config_look_eval_keep_context)) { + ruby_quiet = 1; weechat_ruby_unload (ruby_script_eval); + ruby_quiet = 0; ruby_script_eval = NULL; } |