diff options
| author | 2007-10-08 13:28:23 +0000 | |
|---|---|---|
| committer | 2007-10-08 13:28:23 +0000 | |
| commit | 917638dfdf31e26ae9115dabb5c2fe528866c549 (patch) | |
| tree | d5ab13c057983bff1fac0ed64638bb105f8f03b7 /modules/inspect.pl | |
| parent | 3790452619828dc2c5d27c13eeec7b67b3fe6eff (diff) | |
added a db command, improved the user set flags command, added linked channels, added a showhilights command, eliminated flooding of alerts, fixed nickspam check, added something to watch chancounts.
Diffstat (limited to 'modules/inspect.pl')
| -rw-r--r-- | modules/inspect.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/inspect.pl b/modules/inspect.pl index a995202..faa4dd7 100644 --- a/modules/inspect.pl +++ b/modules/inspect.pl @@ -64,13 +64,13 @@ sub inspect { $conn->schedule(int($dct{$id}{time}), sub { $::oq->o_send($lconn,$lunmode); }); } } - unless (defined($::ignored{$event->{host}}) && ($::ignored{$event->{host}} >= $::RISKS{$dct{$id}{risk}})) { + unless (defined($::ignored{$chan}) && ($::ignored{$chan} >= $::RISKS{$dct{$id}{risk}})) { my @tgts = ASM::Util->getAlert($chan, $dct{$id}{risk}, 'msgs'); foreach my $tgt (@tgts) { $conn->privmsg($tgt, $txtz); } - $::ignored{$event->{host}} = $::RISKS{$dct{$id}{risk}}; - $conn->schedule(60, sub { delete($::ignored{$event->{host}})}); + $::ignored{$chan} = $::RISKS{$dct{$id}{risk}}; + $conn->schedule(45, sub { delete($::ignored{$chan})}); } } } |
