From: timriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Date: Fri, 26 Sep 2003 19:25:38 +0000 (+0000)
Subject: more ignore stuff
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fa73d1328bfe3f10f6e3d19549ddfb527875c319;p=infobot.git

more ignore stuff


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

diff --git a/src/DynaConfig.pl b/src/DynaConfig.pl
index 96ec689..f2158b7 100644
--- a/src/DynaConfig.pl
+++ b/src/DynaConfig.pl
@@ -505,6 +505,7 @@ sub hasFlag {
     }
 }
 
+# expire is time in minutes
 sub ignoreAdd {
     my($mask,$chan,$expire,$comment) = @_;
 
diff --git a/src/Factoids/Core.pl b/src/Factoids/Core.pl
index 26c732b..241620d 100644
--- a/src/Factoids/Core.pl
+++ b/src/Factoids/Core.pl
@@ -237,7 +237,7 @@ sub FactoidStuff {
 	    # todo: make forget limit configurable.
 	    # todo: make forget ignore time configurable.
 	    if ($cache{forget}{$h} > 5) {
-		&ignoreAdd(&makeHostMask($nuh), "*", 3*24*60*60, "abuse of forget");
+		&ignoreAdd(&makeHostMask($nuh), "*", 3*24*60, "abuse of forget");
 		&msg($who, "forget: Suck it!");
 	    }
 	}
diff --git a/src/Modules/UserDCC.pl b/src/Modules/UserDCC.pl
index e79399b..4f82528 100644
--- a/src/Modules/UserDCC.pl
+++ b/src/Modules/UserDCC.pl
@@ -1189,7 +1189,7 @@ sub userDCC {
 
 	if (!$state) {			# delignore.
 	    if ( &ignoreDel($mask) ) {
-		&pSReply("ok, deleted X ignores.");
+		&pSReply("ok, deleted ignores for $mask.");
 	    } else {
 		&pSReply("could not find $mask in ignore list.");
 	    }
@@ -1209,7 +1209,7 @@ sub userDCC {
 
 	# time.
 	if ($args =~ s/^(\d+)\s*//) {
-	    $time = $1*60;	# ??
+	    $time = $1;	# time is in minutes
 	} else {
 	    $time = 0;
 	}