From 239a92e87b904e259aec354930bb50ac7371d001 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Sun, 6 Nov 2016 01:50:34 +0000 Subject: Allow disabling rules per-channel This is a pretty hacky solution and currently only available via a direct config edit. That said, how we deal with channel settings is due for an overhaul anyway. --- lib/ASM/Inspect.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ASM/Inspect.pm b/lib/ASM/Inspect.pm index d6121fb..3aad276 100644 --- a/lib/ASM/Inspect.pm +++ b/lib/ASM/Inspect.pm @@ -98,6 +98,7 @@ sub inspect { next unless ASM::Util->mayAlert($chan); foreach $id (keys %aonx) { next unless ( grep { $event->{type} eq $_ } split(/[,:; ]+/, $aonx{$id}{type}) ); + next if exists $::channels->{channel}{$chan}{disable_rules}{$id}; if (defined($response)) { if ($aonx{$id}{class} ne 'urlcrunch') { next; } #don't run our regular checks if this is being called from a URL checking function else { $xresult = $::classes->check($aonx{$id}{class}, $aonx{$id}, $id, $event, $chan, $response); } -- cgit v1.2.3