3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 20:09:43 +01:00

registerable: removed unnecessary array size check

This commit is contained in:
Pragmatic Software 2011-01-28 23:16:50 +00:00
parent 8d524089db
commit 65920bbe33
2 changed files with 5 additions and 7 deletions

View File

@ -34,12 +34,10 @@ 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;
}
}
return undef;
}

View File

@ -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;