Fixed a warning I missed and a typo.
This commit is contained in:
1 parent
9b6eecb797
commit
dbfde5c33b
2 files changed
+2
-7
No files matched your search
+1
-6
@@ -139,12 +139,7 @@ sub event_run
|
||||
|
||||
if (defined $EVENTS{lc($event)} and defined $HOOKS{lc($event)}) {
|
||||
foreach my $hk (keys %{ $HOOKS{lc($event)} }) {
|
||||
if (defined @args) {
|
||||
&{ $HOOKS{lc($event)}{$hk} }(@args);
|
||||
}
|
||||
else {
|
||||
&{ $HOOKS{lc($event)}{$hk} }();
|
||||
}
|
||||
&{ $HOOKS{lc($event)}{$hk} }(@args);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user