Fix minor errors in hooks.pod
While writing a plugin for our new spamfilter implementation I noticed some minor error in the documentation. From the documentation it sounds like the hook_ok and hook_deny hooks get the previous hook as parameter.. The truth is: it is the previous plugin.
This commit is contained in:
parent
5472e92c3b
commit
5ac4fc0524
@ -682,7 +682,7 @@ This hook is called after a plugin returned I<DENY>, I<DENYSOFT>,
|
||||
I<DENY_DISCONNECT> or I<DENYSOFT_DISCONNECT>. All return codes are ignored,
|
||||
arguments are
|
||||
|
||||
my ($self, $transaction, $prev_hook, $return, $return_text) = @_;
|
||||
my ($self, $transaction, $prev_plugin, $return, $return_text) = @_;
|
||||
|
||||
B<NOTE:> C<$transaction> may be C<undef>, depending when / where this hook
|
||||
is called. It's probably best not to try acessing it.
|
||||
@ -695,7 +695,7 @@ The counter part of C<hook_deny>, it is called after a plugin B<did not>
|
||||
return I<DENY>, I<DENYSOFT>, I<DENY_DISCONNECT> or I<DENYSOFT_DISCONNECT>.
|
||||
All return codes are ignored, arguments are
|
||||
|
||||
my ( $self, $transaction, $prev_hook, $return, $return_text ) = @_;
|
||||
my ( $self, $transaction, $prev_plugin, $return, $return_text ) = @_;
|
||||
|
||||
B<NOTE:> C<$transaction> may be C<undef>, depending when / where this hook
|
||||
is called. It's probably best not to try acessing it.
|
||||
|
Loading…
Reference in New Issue
Block a user