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:
parent
8d524089db
commit
65920bbe33
@ -34,11 +34,9 @@ sub initialize {
|
|||||||
sub execute_all {
|
sub execute_all {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
if($#{ $self->{handlers} } > -1) {
|
foreach my $func (@{ $self->{handlers} }) {
|
||||||
foreach my $func (@{ $self->{handlers} }) {
|
my $result = &{ $func->{subref} }(@_);
|
||||||
my $result = &{ $func->{subref} }(@_);
|
return $result if defined $result;
|
||||||
return $result if defined $result;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,8 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 274,
|
BUILD_REVISION => 275,
|
||||||
BUILD_DATE => "2011-01-26",
|
BUILD_DATE => "2011-01-28",
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user