diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-03-07 09:35:29 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-03-07 09:35:29 +0100 |
commit | e95f8533031771d8307c6ed54d0fe2cf0bc8da37 (patch) | |
tree | dc6b35d7f2521520a81b08578829d1d7bdea3794 /src/plugins/ruby | |
parent | 5d1f7e79ba3d777f238a77bd953713a3c1cc3bd2 (diff) | |
download | weechat-e95f8533031771d8307c6ed54d0fe2cf0bc8da37.zip |
scripts: reset current script pointer when load of script fails in python/perl/ruby/lua/tcl plugins
Diffstat (limited to 'src/plugins/ruby')
-rw-r--r-- | src/plugins/ruby/weechat-ruby.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c index 11c0fe9e7..d5cb4684a 100644 --- a/src/plugins/ruby/weechat-ruby.c +++ b/src/plugins/ruby/weechat-ruby.c @@ -595,11 +595,12 @@ weechat_ruby_load (const char *filename) err = rb_gv_get("$!"); weechat_ruby_print_exception(err); - if (ruby_current_script != NULL) + if (ruby_current_script) { plugin_script_remove (weechat_ruby_plugin, &ruby_scripts, &last_ruby_script, ruby_current_script); + ruby_current_script = NULL; } return 0; |