1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/peers mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/peers |
2 |
|
|
--- smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/peers 2007-06-14 18:53:53.000000000 -0600 |
3 |
|
|
+++ mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/peers 2007-06-14 18:53:45.000000000 -0600 |
4 |
|
|
@@ -70,10 +70,17 @@ |
5 |
|
|
my $qp = shift; |
6 |
|
|
my $config = shift; |
7 |
|
|
$qp->{hooks} = {}; |
8 |
|
|
+ |
9 |
|
|
my @plugins = $qp->config($config); |
10 |
|
|
unshift @plugins, "peers $config"; |
11 |
|
|
- $qp->log(LOGNOTICE, "loading plugin $_") foreach (@plugins); |
12 |
|
|
- return $qp->_load_plugins($qp->plugin_dir, @plugins); |
13 |
|
|
+ my @loaded; |
14 |
|
|
+ |
15 |
|
|
+ for my $plugin_line (@plugins) { |
16 |
|
|
+ my $this_plugin = $qp->_load_plugin($plugin_line, $qp->plugin_dirs); |
17 |
|
|
+ push @loaded, $this_plugin if $this_plugin; |
18 |
|
|
+ } |
19 |
|
|
+ |
20 |
|
|
+ return @loaded; |
21 |
|
|
} |
22 |
|
|
|
23 |
|
|
sub hook_set_hooks { |