3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

Registry: process_trigger: clarify comments about @_

This commit is contained in:
Pragmatic Software 2021-06-05 13:37:23 -07:00
parent 5be4a44353
commit 8057e929ff

View File

@ -276,13 +276,13 @@ sub add_trigger {
sub process_trigger {
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;
$item = lc $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;