diff --git a/PBot/Registerable.pm b/PBot/Registerable.pm index c06f4668..5650b5d4 100644 --- a/PBot/Registerable.pm +++ b/PBot/Registerable.pm @@ -34,11 +34,9 @@ sub initialize { sub execute_all { my $self = shift; - if($#{ $self->{handlers} } > -1) { - foreach my $func (@{ $self->{handlers} }) { - my $result = &{ $func->{subref} }(@_); - return $result if defined $result; - } + foreach my $func (@{ $self->{handlers} }) { + my $result = &{ $func->{subref} }(@_); + return $result if defined $result; } return undef; } diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 6102fc12..9ad42451 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,8 +13,8 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 274, - BUILD_DATE => "2011-01-26", + BUILD_REVISION => 275, + BUILD_DATE => "2011-01-28", }; 1;