diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-07-18 12:02:40 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-07-18 12:02:40 +0000 |
commit | 2c3fad454ce9d2c1db91b0518bb85f039d438ee5 (patch) | |
tree | d2df6f91ec86eadfe1bb5f132d084bfc2aa87831 /src/plugins/scripts/perl/weechat-perl.c | |
parent | b1a99c5e6f8cdbcf6d965266a562b4198ad4588b (diff) | |
download | weechat-2c3fad454ce9d2c1db91b0518bb85f039d438ee5.zip |
Added "buffer_move" event handler to plugins API (task #6708)
Diffstat (limited to 'src/plugins/scripts/perl/weechat-perl.c')
-rw-r--r-- | src/plugins/scripts/perl/weechat-perl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/scripts/perl/weechat-perl.c b/src/plugins/scripts/perl/weechat-perl.c index fa8a5f7e0..edf2a4499 100644 --- a/src/plugins/scripts/perl/weechat-perl.c +++ b/src/plugins/scripts/perl/weechat-perl.c @@ -336,7 +336,10 @@ weechat_perl_event_handler (t_weechat_plugin *plugin, { r = (int *) weechat_perl_exec (plugin, (t_plugin_script *)handler_pointer, SCRIPT_EXEC_INT, - handler_args, argv[0], NULL, NULL); + handler_args, + argv[0], + (argc >= 2) ? argv[1] : NULL, + (argc >= 3) ? argv[2] : NULL); if (r == NULL) ret = PLUGIN_RC_KO; else |