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/demo/demo.c | |
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/demo/demo.c')
-rw-r--r-- | src/plugins/demo/demo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c index 1f4b2609f..2206a13c5 100644 --- a/src/plugins/demo/demo.c +++ b/src/plugins/demo/demo.c @@ -402,8 +402,12 @@ demo_signal_cb (void *data, char *signal, char *type_data, void *signal_data) */ int -weechat_plugin_init (struct t_weechat_plugin *plugin) +weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) { + /* make C compiler happy */ + (void) argc; + (void) argv; + weechat_plugin = plugin; weechat_hook_command ("demo_printf", |