]> git.vpit.fr Git - perl/scripts/xchat.git/blobdiff - Xchat/XPI/Events.pm
Fix Xchat::XPI::Events::{delay,filter} not passing the right arguments
[perl/scripts/xchat.git] / Xchat / XPI / Events.pm
index 52fb57c753e657f4691cda2e0a72c731a7932ab5..d851caaeb961d04e705cd3753527ff4d627cd006 100644 (file)
@@ -18,7 +18,7 @@ sub _delay_cb {
 }
 
 sub delay {
- my $delay = $_[0];
+ my $delay = shift;
 
  if (defined $delay) {
   $delay = int $delay;
@@ -42,7 +42,9 @@ sub _filter_cb {
 }
 
 sub filter {
- hook_print $_[0], \&_filter_cb, { data => \@_ };
+ my $from = shift;
+
+ hook_print $from, \&_filter_cb, { data => \@_ };
 }
 
 use base qw<Exporter>;