From c924fe69134b9e7868d5fb401864d2c0ab817483 Mon Sep 17 00:00:00 2001 From: timriker Date: Fri, 26 Sep 2003 19:25:38 +0000 Subject: [PATCH] more ignore stuff git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@834 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/DynaConfig.pl | 1 + blootbot/src/Factoids/Core.pl | 2 +- blootbot/src/Modules/UserDCC.pl | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/blootbot/src/DynaConfig.pl b/blootbot/src/DynaConfig.pl index 96ec689..f2158b7 100644 --- a/blootbot/src/DynaConfig.pl +++ b/blootbot/src/DynaConfig.pl @@ -505,6 +505,7 @@ sub hasFlag { } } +# expire is time in minutes sub ignoreAdd { my($mask,$chan,$expire,$comment) = @_; diff --git a/blootbot/src/Factoids/Core.pl b/blootbot/src/Factoids/Core.pl index 26c732b..241620d 100644 --- a/blootbot/src/Factoids/Core.pl +++ b/blootbot/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/blootbot/src/Modules/UserDCC.pl b/blootbot/src/Modules/UserDCC.pl index e79399b..4f82528 100644 --- a/blootbot/src/Modules/UserDCC.pl +++ b/blootbot/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; } -- 2.39.5