]> git.donarmstrong.com Git - infobot.git/commitdiff
more ignore stuff
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 26 Sep 2003 19:25:38 +0000 (19:25 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 26 Sep 2003 19:25:38 +0000 (19:25 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@834 c11ca15a-4712-0410-83d8-924469b57eb5

src/DynaConfig.pl
src/Factoids/Core.pl
src/Modules/UserDCC.pl

index 96ec68988f9091fd6d7e46614f82c6df8d1d5b2a..f2158b710228ac9cd29c51b1ed15652c8bd31de9 100644 (file)
@@ -505,6 +505,7 @@ sub hasFlag {
     }
 }
 
+# expire is time in minutes
 sub ignoreAdd {
     my($mask,$chan,$expire,$comment) = @_;
 
index 26c732bc7de27d785a92fd203944798ddab744d4..241620dab721a83706bef84e8beba980f7ad5e08 100644 (file)
@@ -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!");
            }
        }
index e79399b0257bd86746135b9e6e721bb5ea95f039..4f8252841e7e1137d177023378983137c3504ce4 100644 (file)
@@ -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;
        }