]> git.vpit.fr Git - perl/scripts/xchat.git/commitdiff
Fix Xchat::XPI::Events::{delay,filter} not passing the right arguments
authorVincent Pit <vince@profvince.com>
Sat, 10 Mar 2012 12:20:27 +0000 (13:20 +0100)
committerVincent Pit <vince@profvince.com>
Sat, 10 Mar 2012 12:20:27 +0000 (13:20 +0100)
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>;