From 5ac4fc0524c52a72b17b34990c72acc7a6158c9a Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 27 Apr 2009 07:54:18 -0700 Subject: [PATCH] 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. --- docs/hooks.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks.pod b/docs/hooks.pod index d04ddc9..5697c43 100644 --- a/docs/hooks.pod +++ b/docs/hooks.pod @@ -682,7 +682,7 @@ This hook is called after a plugin returned I, I, I or I. All return codes are ignored, arguments are - my ($self, $transaction, $prev_hook, $return, $return_text) = @_; + my ($self, $transaction, $prev_plugin, $return, $return_text) = @_; B C<$transaction> may be C, 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, it is called after a plugin B return I, I, I or I. All return codes are ignored, arguments are - my ( $self, $transaction, $prev_hook, $return, $return_text ) = @_; + my ( $self, $transaction, $prev_plugin, $return, $return_text ) = @_; B C<$transaction> may be C, depending when / where this hook is called. It's probably best not to try acessing it.