X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=xmlrtorrent.pl;h=4f63ba7dec6ea25f2b70a8f98eb56026983bbb5c;hb=928294cf16fe87d0a2550ef58831cc4075b5e7d9;hp=1ba5842fe1c23ec6c2e320fff16fd98285418546;hpb=dd358d09eb0bc6496f3778049e6fe1fb6201003d;p=xmlrtorrent.git diff --git a/xmlrtorrent.pl b/xmlrtorrent.pl index 1ba5842..4f63ba7 100644 --- a/xmlrtorrent.pl +++ b/xmlrtorrent.pl @@ -30,7 +30,7 @@ my $PARAMS = { }; # activate debug here -my $debug = 1; +my $debug = 0; # "message public", SERVER_REC, char *msg, char *nick, char *address, char *target signal_add_last("message public" => sub {check_for_link(\@_,1,4,2,0);}); @@ -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'}};