From dec7127db8bf89becbdd99116663a7db31383f07 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Mon, 6 Apr 2015 02:44:16 +0400 Subject: modules/inspect.pl: add "no$id" restrictions This is mostly of use to silence undesired DNSBL warnings for a host without having to give notrigger to the host. --- modules/inspect.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/inspect.pl b/modules/inspect.pl index 1f86dbd..57fc722 100644 --- a/modules/inspect.pl +++ b/modules/inspect.pl @@ -72,7 +72,7 @@ sub inspect { my $evhost = $event->{host}; foreach $chan (@{$event->{to}}) { foreach $id ( keys %dct ) { - return unless (ASM::Util->notRestricted($nick, "notrigger")); + return unless (ASM::Util->notRestricted($nick, "notrigger") && ASM::Util->notRestricted($nick, "no$id")); $xresult = $dct{$id}{xresult}; my $nicereason = interpolate($dct{$id}{reason}); $::db->record($chan, $event->{nick}, $event->{user}, $event->{host}, $::sn{lc $event->{nick}}->{gecos}, $dct{$id}{risk}, $id, $nicereason); -- cgit v1.2.3