summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Bouthenot <kolter@openics.org>2005-12-11 10:56:13 +0000
committerEmmanuel Bouthenot <kolter@openics.org>2005-12-11 10:56:13 +0000
commitacb40634b0f47d36701f02416ca16e62597c4f0e (patch)
tree63c7460ec3784a8d85be154b561fb52f9efccac4
parent290c6033210a2133cb20ec641d99ee8e9f0b2834 (diff)
downloadweechat-acb40634b0f47d36701f02416ca16e62597c4f0e.zip
fix: shutdown function was not lauched
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby.c3
-rw-r--r--weechat/src/plugins/scripts/ruby/weechat-ruby.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c
index 6c5b50b4d..389100264 100644
--- a/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/src/plugins/scripts/ruby/weechat-ruby.c
@@ -1029,6 +1029,9 @@ weechat_ruby_unload (t_weechat_plugin *plugin, t_plugin_script *script)
"Unloading Ruby script \"%s\"",
script->name);
+ if (script->shutdown_func[0])
+ weechat_ruby_exec (plugin, script, script->shutdown_func, "", "");
+
if (script->interpreter)
rb_gc_unregister_address (script->interpreter);
diff --git a/weechat/src/plugins/scripts/ruby/weechat-ruby.c b/weechat/src/plugins/scripts/ruby/weechat-ruby.c
index 6c5b50b4d..389100264 100644
--- a/weechat/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/weechat/src/plugins/scripts/ruby/weechat-ruby.c
@@ -1029,6 +1029,9 @@ weechat_ruby_unload (t_weechat_plugin *plugin, t_plugin_script *script)
"Unloading Ruby script \"%s\"",
script->name);
+ if (script->shutdown_func[0])
+ weechat_ruby_exec (plugin, script, script->shutdown_func, "", "");
+
if (script->interpreter)
rb_gc_unregister_address (script->interpreter);