From: dms Date: Sat, 3 Feb 2001 15:48:29 +0000 (+0000) Subject: added IsParam back to hasParam together with isChanConf X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1ba81cfeda12da3beaab643d8a76243ea0e053c7;p=infobot.git added IsParam back to hasParam together with isChanConf git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@326 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Misc.pl b/blootbot/src/Misc.pl index 43c3f2a..284de06 100644 --- a/blootbot/src/Misc.pl +++ b/blootbot/src/Misc.pl @@ -439,8 +439,6 @@ sub isStale { return 1 unless ( -f $file); return 1 if (time() - (stat($file))[9] > $age*60*60*24); - my $delta = time() - (stat($file))[9]; - my $hage = $age*60*60*24; return 0; } @@ -616,7 +614,7 @@ sub hasProfanity { sub hasParam { my ($param) = @_; - if (&IsChanConf($param)) { + if (&IsChanConf($param) or &IsParam($param)) { return 1; } else { ### TODO: specific reason why it failed.