diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-05-15 22:13:54 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-05-15 22:13:54 +0200 |
commit | 91084108ae84755b073661c5fcb757db32b53eac (patch) | |
tree | 7b21caef71a5d758f1ac3a13348f858fc222f48b /src/plugins/scripts/ruby | |
parent | f67a5164199431ec2330442cd170616d96d222d7 (diff) | |
download | weechat-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.c | 6 |
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; |