]> git.donarmstrong.com Git - infobot.git/commitdiff
added IsParam back to hasParam together with isChanConf
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 3 Feb 2001 15:48:29 +0000 (15:48 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 3 Feb 2001 15:48:29 +0000 (15:48 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@326 c11ca15a-4712-0410-83d8-924469b57eb5

blootbot/src/Misc.pl

index 43c3f2ab1e263627e7b262e31eb9ac5dc93b3003..284de066304a02537cdc9451b9bfd14619ef5176 100644 (file)
@@ -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.