diff options
author | Emmanuel Bouthenot <kolter@openics.org> | 2006-04-12 15:29:28 +0000 |
---|---|---|
committer | Emmanuel Bouthenot <kolter@openics.org> | 2006-04-12 15:29:28 +0000 |
commit | f2258884d9413d88c8e4a6156ad0b914c758c98f (patch) | |
tree | 8424353a0c84cb41a4582674de06de863f13f021 /src/plugins | |
parent | 1bee0ba0b2f86e6e697e648acd565934ccd69e0b (diff) | |
download | weechat-f2258884d9413d88c8e4a6156ad0b914c758c98f.zip |
fix minor bug with ruby 1.9 and stdout/stderr redirections
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/scripts/ruby/weechat-ruby.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c index c648dd58f..8a35cbf5a 100644 --- a/src/plugins/scripts/ruby/weechat-ruby.c +++ b/src/plugins/scripts/ruby/weechat-ruby.c @@ -1507,6 +1507,19 @@ weechat_ruby_output(VALUE self, VALUE str) return Qnil; } +/* + * weechat_ruby_output_flush : just for compatibility + */ + +static VALUE +weechat_ruby_output_flush(VALUE self) +{ + /* make gcc happy */ + (void) self; + + return Qnil; +} + /* * weechat_ruby_load: load a Ruby script @@ -1937,6 +1950,8 @@ weechat_plugin_init (t_weechat_plugin *plugin) rb_define_singleton_method(mWeechatOutputs, "write", weechat_ruby_output, 1); rb_define_singleton_method(mWeechatOutputs, "puts", weechat_ruby_output, 1); rb_define_singleton_method(mWeechatOutputs, "p", weechat_ruby_output, 1); + rb_define_singleton_method(mWeechatOutputs, "flush", weechat_ruby_output_flush, 0); + plugin->cmd_handler_add (plugin, "ruby", "list/load/unload Ruby scripts", |