summaryrefslogtreecommitdiff
path: root/lib/Multi
diff options
context:
space:
mode:
authoryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-05-28 21:02:32 +0000
committeryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-05-28 21:02:32 +0000
commitc0714595eb620a0fbb2ea9fe12465483419aae22 (patch)
treea89902474c3397458141eff01722f2bc4e9b772f /lib/Multi
parent3b6642367edf7af5a927b3a0349582ca59f1396b (diff)
Realized the vncache should be updated daily in order to catch recently released titles. Fixed Multi::IRC to catch dx.x IDs without matching version numbers
git-svn-id: svn://vndb.org/vndb@18 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'lib/Multi')
-rw-r--r--lib/Multi/IRC.pm2
-rw-r--r--lib/Multi/Maintenance.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Multi/IRC.pm b/lib/Multi/IRC.pm
index 5611c3cf..e143d56b 100644
--- a/lib/Multi/IRC.pm
+++ b/lib/Multi/IRC.pm
@@ -148,7 +148,7 @@ sub vndbid { # dest, msg
my @id;
push @id, [$1,$2,$3,$4] while $m =~ s/^(.*)([duvpr])([0-9]+)(.*)$/ $1 $4 /i;
for (reverse @id) {
- next if $$_[0] =~ /[a-z0-9%\/]$/i || $$_[3] =~ /^[a-z.]/i;
+ next if $$_[0] =~ /[a-z0-9%\/]$/i || $$_[3] =~ /^[a-z]/i || ($$_[1] eq 'v' && $$_[3] =~ /^\.[0-9]/);
my($t, $id, $ext) = (lc($$_[1]), $$_[2], $$_[3]);
next if $_[HEAP]{log}{$t.$id};
diff --git a/lib/Multi/Maintenance.pm b/lib/Multi/Maintenance.pm
index d0aa4dbc..ef49340b 100644
--- a/lib/Multi/Maintenance.pm
+++ b/lib/Multi/Maintenance.pm
@@ -29,9 +29,9 @@ sub _start {
$_[KERNEL]->call(core => register => qr/^maintenance((?: (?:vncache|ratings|prevcache|integrity|unkanime|logrotate))+)$/, 'cmd_maintenance');
# Perform some maintenance functions every day on 0:00
- $_[KERNEL]->post(core => addcron => '0 0 * * *', 'maintenance ratings integrity unkanime');
+ $_[KERNEL]->post(core => addcron => '0 0 * * *', 'maintenance vncache ratings integrity unkanime');
# update caches and rotate logs every 1st day of the month at 0:05
- $_[KERNEL]->post(core => addcron => '5 0 1 * *' => 'maintenance vncache prevcache logrotate');
+ $_[KERNEL]->post(core => addcron => '5 0 1 * *' => 'maintenance prevcache logrotate');
}