summaryrefslogtreecommitdiffstats
path: root/modules/inspect.pl
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-04-06 02:44:16 +0400
committerLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-04-06 02:44:16 +0400
commitdec7127db8bf89becbdd99116663a7db31383f07 (patch)
treeb2c0f761b2369c4ed8ec2240f35b6d87f2ecb0ed /modules/inspect.pl
parente50196505e05d4563e95bc154ef0942fe2da798a (diff)
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.
Diffstat (limited to 'modules/inspect.pl')
-rw-r--r--modules/inspect.pl2
1 files changed, 1 insertions, 1 deletions
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);