diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-04-16 14:25:44 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-04-16 14:25:44 +0200 |
commit | 44003c2dae28cafba8a8aa95e4a7072775d5a00f (patch) | |
tree | 504b9b343feaa0d91b13c3c1fa8881cdafe7ecc1 /src/plugins/scripts/ruby/weechat-ruby.c | |
parent | 771be1a3164fb91b48ddb9eac95bfae955b37cf9 (diff) | |
download | weechat-44003c2dae28cafba8a8aa95e4a7072775d5a00f.zip |
Restore buffer callbacks for scripts after /upgrade
Diffstat (limited to 'src/plugins/scripts/ruby/weechat-ruby.c')
-rw-r--r-- | src/plugins/scripts/ruby/weechat-ruby.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c index 836f68602..144700497 100644 --- a/src/plugins/scripts/ruby/weechat-ruby.c +++ b/src/plugins/scripts/ruby/weechat-ruby.c @@ -843,10 +843,6 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) "end\n" }; - /* make C compiler happy */ - (void) argc; - (void) argv; - weechat_ruby_plugin = plugin; ruby_error = 0; @@ -889,13 +885,18 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) ruby_quiet = 1; script_init (weechat_ruby_plugin, + argc, + argv, + &ruby_scripts, &weechat_ruby_command_cb, &weechat_ruby_completion_cb, &weechat_ruby_infolist_cb, &weechat_ruby_signal_debug_dump_cb, &weechat_ruby_signal_buffer_closed_cb, &weechat_ruby_signal_script_action_cb, - &weechat_ruby_load_cb); + &weechat_ruby_load_cb, + &weechat_ruby_api_buffer_input_data_cb, + &weechat_ruby_api_buffer_close_cb); ruby_quiet = 0; script_display_short_list (weechat_ruby_plugin, |