From: Christian Garbs Date: Sun, 28 Dec 2008 13:07:00 +0000 (+0100) Subject: load submodule config on startup X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=xmlrtorrent.git;a=commitdiff_plain;h=873a6b45bd8113444349cd0e8c3b3ce7798a021b load submodule config on startup --- 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'}};