From: dms Date: Sun, 10 Dec 2000 12:51:01 +0000 (+0000) Subject: temp dir unified X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ff79e1c84ea3ec0e1e72c36d27ea958c8a4ca77a;p=infobot.git temp dir unified git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@189 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Modules/Freshmeat.pl b/src/Modules/Freshmeat.pl index df78405..2ecd143 100644 --- a/src/Modules/Freshmeat.pl +++ b/src/Modules/Freshmeat.pl @@ -99,7 +99,7 @@ sub showPackage { sub downloadIndex { my $start_time = &main::gettimeofday(); # set the start time. - my $idx = "$main::bot_base_dir/Temp/fm_index.txt"; + my $idx = "$main::param{tempDir}/fm_index.txt"; &main::msg($main::who, "Updating freshmeat index... please wait"); @@ -194,7 +194,7 @@ sub downloadIndex { } sub freshmeatAnnounce { - my $file = "$main::bot_base_dir/Temp/fm_recent.txt"; + my $file = "$main::param{tempDir}/fm_recent.txt"; my @old; ### if file exists, lets read it. diff --git a/src/Modules/Kernel.pl b/src/Modules/Kernel.pl index 588b2c6..d3bff03 100644 --- a/src/Modules/Kernel.pl +++ b/src/Modules/Kernel.pl @@ -67,7 +67,7 @@ sub Kernel { } sub kernelAnnounce { - my $file = "$main::bot_base_dir/Temp/kernel.txt"; + my $file = "$main::param{tempDir}/kernel.txt"; my @now = &kernelGetInfo(); my @old; diff --git a/src/Modules/Slashdot3.pl b/src/Modules/Slashdot3.pl index f8f3a67..90fb56e 100644 --- a/src/Modules/Slashdot3.pl +++ b/src/Modules/Slashdot3.pl @@ -46,7 +46,7 @@ sub Slashdot { } sub slashdotAnnounce { - my $file = "Temp/slashdot.xml"; + my $file = "$main::param{tempDir}/slashdot.xml"; my @Cxml = &main::getURL("http://www.slashdot.org/slashdot.xml"); if (!scalar @Cxml) {