summaryrefslogtreecommitdiffstats
path: root/whine.pl
diff options
context:
space:
mode:
Diffstat (limited to 'whine.pl')
-rwxr-xr-xwhine.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/whine.pl b/whine.pl
index ad6067228..7e02a64e7 100755
--- a/whine.pl
+++ b/whine.pl
@@ -35,6 +35,7 @@ use Bugzilla::User;
use Bugzilla::Mailer;
use Bugzilla::Util;
use Bugzilla::Group;
+use Bugzilla::Hook;
# create some handles that we'll need
my $template = Bugzilla->template;
@@ -367,6 +368,8 @@ sub mail {
# Don't send mail to someone whose bugmail notification is disabled.
return if $addressee->email_disabled;
+ Bugzilla::Hook::process('whine_before_send', { params => $args });
+
my $template = Bugzilla->template_inner($addressee->setting('lang'));
my $msg = ''; # it's a temporary variable to hold the template output
$args->{'alternatives'} ||= [];