diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b450ed83..07e8e2674 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ - xfer: fix send of data on the DCC chat buffer after `/upgrade` if the buffer was opened before the upgrade ([#2092](https://github.com/weechat/weechat/issues/2092)) - core: fix refresh of bar item "scroll" in root bar after `/buffer clear` ([#590](https://github.com/weechat/weechat/issues/590)) - core, plugins: return "0x0" instead of "(nil)" for pointers formatted in strings +- ruby: fix builtin functions not available ([#2109](https://github.com/weechat/weechat/issues/2109)) - php: fix return value of function hdata_longlong - tcl: fix return value of function hdata_longlong ([#2119](https://github.com/weechat/weechat/issues/2119)) - relay: fix read of one buffer line in API protocol diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c index 502e3530e..5036f19fb 100644 --- a/src/plugins/ruby/weechat-ruby.c +++ b/src/plugins/ruby/weechat-ruby.c @@ -1266,6 +1266,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) { int ruby_error, old_ruby_quiet; VALUE err; + char* process_options_argv[] = { "ruby", "-enil", NULL }; char *weechat_ruby_code = { "$stdout = WeechatOutputs\n" "$stderr = WeechatOutputs\n" @@ -1364,6 +1365,8 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) ruby_init (); + ruby_process_options (2, process_options_argv); + /* redirect stdin and stdout */ ruby_mWeechatOutputs = rb_define_module ("WeechatOutputs"); rb_define_singleton_method (ruby_mWeechatOutputs, "write",