1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

fix minor bug with ruby 1.9 and stdout/stderr redirections

This commit is contained in:
Emmanuel Bouthenot
2006-04-12 15:29:28 +00:00
parent 1bee0ba0b2
commit f2258884d9
2 changed files with 30 additions and 0 deletions
+15
View File
@@ -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",