summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-02-18 12:50:03 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-02-18 12:50:03 +0000
commitda3f8ade085fc86dfc1efc02524474201669393b (patch)
treed4d98429a48a555bb206b2b2ec094abfdc3c254d
parent271d1c905fbff4712c5a779d4a7e31c3461080ae (diff)
downloadweechat-da3f8ade085fc86dfc1efc02524474201669393b.zip
Fixed Ruby function "log" (argument count)
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby.c2
-rw-r--r--weechat/src/plugins/scripts/ruby/weechat-ruby.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c
index 8ccee76fd..397a98ade 100644
--- a/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/src/plugins/scripts/ruby/weechat-ruby.c
@@ -1608,7 +1608,7 @@ weechat_plugin_init (t_weechat_plugin *plugin)
rb_define_module_function (mWeechat, "register", weechat_ruby_register, 4);
rb_define_module_function (mWeechat, "print", weechat_ruby_print, -1);
rb_define_module_function (mWeechat, "print_infobar", weechat_ruby_print_infobar, 2);
- rb_define_module_function (mWeechat, "log", weechat_ruby_log, 2);
+ rb_define_module_function (mWeechat, "log", weechat_ruby_log, -1);
rb_define_module_function (mWeechat, "command", weechat_ruby_command, -1);
rb_define_module_function (mWeechat, "add_message_handler", weechat_ruby_add_message_handler, 2);
rb_define_module_function (mWeechat, "add_command_handler", weechat_ruby_add_command_handler, -1);
diff --git a/weechat/src/plugins/scripts/ruby/weechat-ruby.c b/weechat/src/plugins/scripts/ruby/weechat-ruby.c
index 8ccee76fd..397a98ade 100644
--- a/weechat/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/weechat/src/plugins/scripts/ruby/weechat-ruby.c
@@ -1608,7 +1608,7 @@ weechat_plugin_init (t_weechat_plugin *plugin)
rb_define_module_function (mWeechat, "register", weechat_ruby_register, 4);
rb_define_module_function (mWeechat, "print", weechat_ruby_print, -1);
rb_define_module_function (mWeechat, "print_infobar", weechat_ruby_print_infobar, 2);
- rb_define_module_function (mWeechat, "log", weechat_ruby_log, 2);
+ rb_define_module_function (mWeechat, "log", weechat_ruby_log, -1);
rb_define_module_function (mWeechat, "command", weechat_ruby_command, -1);
rb_define_module_function (mWeechat, "add_message_handler", weechat_ruby_add_message_handler, 2);
rb_define_module_function (mWeechat, "add_command_handler", weechat_ruby_add_command_handler, -1);