From 873a6b45bd8113444349cd0e8c3b3ce7798a021b Mon Sep 17 00:00:00 2001 From: Christian Garbs Date: Sun, 28 Dec 2008 14:07:00 +0100 Subject: [PATCH] load submodule config on startup --- xmlrtorrent.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmlrtorrent.pl b/xmlrtorrent.pl index 1ba5842..0f50ba9 100644 --- a/xmlrtorrent.pl +++ b/xmlrtorrent.pl @@ -431,6 +431,10 @@ sub init_xmlrtorrent { write_debug('Selected %s as talker', $talker->{'NAME'}); $conf->{'xmlrtorrent'}->{'talker'} = $talker->{'NAME'}; + # Loop through all plugins and load the config + foreach $p (@talkers) { + $conf->{'xmlrtorrent'}->{'config'}->{$p->{'NAME'}} = $p->mergeconfig($conf->{'xmlrtorrent'}->{'config'}->{$p->{'NAME'}}); + } # Restore the queue %torrentlist = %{$conf->{'xmlrtorrent'}->{'_QUEUE'}}; -- 1.8.3.1