summaryrefslogtreecommitdiff
path: root/lib/Multi/Denpa.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Multi/Denpa.pm')
-rw-r--r--lib/Multi/Denpa.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Multi/Denpa.pm b/lib/Multi/Denpa.pm
index c9139cf2..69fe9292 100644
--- a/lib/Multi/Denpa.pm
+++ b/lib/Multi/Denpa.pm
@@ -6,6 +6,7 @@ use Multi::Core;
use AnyEvent::HTTP;
use JSON::XS 'decode_json';
use MIME::Base64 'encode_base64';
+use VNDB::Config;
my %C = (
@@ -18,7 +19,7 @@ my %C = (
sub run {
shift;
- $C{ua} = "VNDB.org Affiliate Crawler (Multi v$VNDB::S{version}; contact\@vndb.org)";
+ $C{ua} = sprintf 'VNDB.org Affiliate Crawler (Multi v%s; contact@vndb.org)', config->{version};
%C = (%C, @_);
push_watcher schedule 0, $C{check_timeout}, sub {