From 35689ac6a6823aaa3e3b3af7ed4a23d5fc4ecf3f Mon Sep 17 00:00:00 2001 From: dms Date: Sat, 3 Feb 2001 15:48:29 +0000 Subject: [PATCH] added IsParam back to hasParam together with isChanConf git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@326 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Misc.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Misc.pl b/src/Misc.pl index 43c3f2a..284de06 100644 --- a/src/Misc.pl +++ b/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. -- 2.39.5