From: timriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Date: Tue, 29 Mar 2005 19:09:58 +0000 (+0000)
Subject: $::chan
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7fe01fef134a8f6c3d1644ee3b424bfcf1b26e66;p=infobot.git

$::chan


git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1211 c11ca15a-4712-0410-83d8-924469b57eb5
---

diff --git a/src/Modules/Debian.pl b/src/Modules/Debian.pl
index f7e91c0..faf7ee2 100644
--- a/src/Modules/Debian.pl
+++ b/src/Modules/Debian.pl
@@ -12,7 +12,7 @@ no strict 'refs'; # FIXME: dstats aborts if set
 
 my $announce	= 0;
 my $defaultdist	= 'sid';
-my $refresh = &::getChanConfDefault('debianRefreshInterval', 7, $chan) * 60 * 60 * 24;
+my $refresh = &::getChanConfDefault('debianRefreshInterval', 7, $::chan) * 60 * 60 * 24;
 my $debug	= 0;
 my $debian_dir	= $::bot_state_dir . 'debian';
 my $country	= 'us'; # well .config it yourself then. ;-)
diff --git a/src/Modules/Search.pl b/src/Modules/Search.pl
index 4a9c082..a71bd9c 100644
--- a/src/Modules/Search.pl
+++ b/src/Modules/Search.pl
@@ -13,7 +13,7 @@ sub Search {
     my ($type, $str) = @_;
     my $start_time = &::timeget();
     my @list;
-    my $maxshow = &::getChanConfDefault('maxListReplyCount', 15, $chan);
+    my $maxshow = &::getChanConfDefault('maxListReplyCount', 15, $::chan);
 
     $type =~ s/s$//;	# nice work-around.