]> git.donarmstrong.com Git - infobot.git/commitdiff
temporary ignores can be removed automatically once expired
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 2 Feb 2001 13:36:59 +0000 (13:36 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 2 Feb 2001 13:36:59 +0000 (13:36 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@306 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/IrcHooks.pl
src/IRC/Schedulers.pl

index a1ad9fb586f43f7e1d26bc11e587c23394f532ca..2c93f495a58d6f59435ee4fa0add7b9cb1adf8eb 100644 (file)
@@ -212,8 +212,6 @@ sub on_dcc_close {
        &delForked($forker);
     }
 
-    &DEBUG("dcc_close: nick => '$nick'.");
-
     if (exists $dcc{'SEND'}{$nick} and -f "$param{tempDir}/$nick.txt") {
        &status("${b_green}DCC SEND$ob close from $b_cyan$nick$ob");
 
@@ -224,6 +222,7 @@ sub on_dcc_close {
     } elsif (exists $dcc{'CHAT'}{$nick} and $dcc{'CHAT'}{$nick} eq $sock) {
        &status("${b_green}DCC CHAT$ob close from $b_cyan$nick$ob");
        delete $dcc{'CHAT'}{$nick};
+       delete $dcc{'CHATvrfy'}{$nick};
     } else {
        &status("${b_green}DCC$ob UNKNOWN close from $b_cyan$nick$ob (2)");
     }
@@ -242,7 +241,7 @@ sub on_dcc_open {
        &status("${b_green}DCC lGET$ob established with $b_cyan$nick$ob");
     } elsif ($type eq 'CHAT') {
        &status("${b_green}DCC CHAT$ob established with $b_cyan$nick$ob $b_yellow($ob$nuh{$nick}$b_yellow)$ob");
-       $userHandle     = &verifyUser($nick, $nuh{lc $nick});
+       &verifyUser($nick, $nuh{lc $nick});
        my $crypto      = $users{$userHandle}{PASS};
        $dcc{'CHAT'}{$nick} = $sock;
 
index b518f7cdd5e57bb8a545ce50d5b1ca3aa96109f8..ad502a6cc9e4af4e03a3c18dbd705eb8592fc6d4 100644 (file)
@@ -508,14 +508,13 @@ sub ignoreCheck {
        my $chan = $_;
 
        foreach (keys %{ $ignore{$chan} }) {
-           my @array = \@{ $ignore{$chan}{$_} };
+           my @array = @{ $ignore{$chan}{$_} };
 
            foreach (@array) {
                &DEBUG("ignore:  => $_");
            }
 
-           next;
-           next unless ($time > $ignore{$_});
+           next unless ($array[0] and $time > $array[0]);
 
            delete $ignore{$chan}{$_};
            &status("ignore: $_/$chan has expired.");