mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 10:59:29 +01:00
Registry: process_trigger: clarify comments about @_
This commit is contained in:
parent
5be4a44353
commit
8057e929ff
@ -276,13 +276,13 @@ sub add_trigger {
|
|||||||
|
|
||||||
sub process_trigger {
|
sub process_trigger {
|
||||||
my $self = shift; # shift $self off of the top of @_
|
my $self = shift; # shift $self off of the top of @_
|
||||||
my ($section, $item) = @_; # but leave $section and $item in @_
|
my ($section, $item) = @_; # but leave $section, $item and anything else (i.e. $value) in @_
|
||||||
|
|
||||||
$section = lc $section;
|
$section = lc $section;
|
||||||
$item = lc $item;
|
$item = lc $item;
|
||||||
|
|
||||||
if (exists $self->{triggers}->{$section} and exists $self->{triggers}->{$section}->{$item}) {
|
if (exists $self->{triggers}->{$section} and exists $self->{triggers}->{$section}->{$item}) {
|
||||||
return &{$self->{triggers}->{$section}->{$item}}(@_); # $section and $item still in @_
|
return &{$self->{triggers}->{$section}->{$item}}(@_); # $section, $item, $value, etc in @_
|
||||||
}
|
}
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
|
Loading…
Reference in New Issue
Block a user