summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/ruby
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-05-15 22:13:54 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-05-15 22:13:54 +0200
commit91084108ae84755b073661c5fcb757db32b53eac (patch)
tree7b21caef71a5d758f1ac3a13348f858fc222f48b /src/plugins/scripts/ruby
parentf67a5164199431ec2330442cd170616d96d222d7 (diff)
downloadweechat-91084108ae84755b073661c5fcb757db32b53eac.zip
Add arguments for plugin init functions and "irc://.." command line option for irc plugin
Diffstat (limited to 'src/plugins/scripts/ruby')
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c
index 7e920c612..190aab498 100644
--- a/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/src/plugins/scripts/ruby/weechat-ruby.c
@@ -646,7 +646,7 @@ weechat_ruby_buffer_closed_cb (void *data, char *signal, char *type_data,
*/
int
-weechat_plugin_init (struct t_weechat_plugin *plugin)
+weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
{
int ruby_error;
char *weechat_ruby_code =
@@ -692,6 +692,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin)
"end\n"
};
+ /* make C compiler happy */
+ (void) argc;
+ (void) argv;
+
weechat_ruby_plugin = plugin;
ruby_error = 0;