summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/inspect.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/inspect.pl b/modules/inspect.pl
index c64a855..1f86dbd 100644
--- a/modules/inspect.pl
+++ b/modules/inspect.pl
@@ -41,6 +41,9 @@ sub inspect {
## NB: isn't there a better way to do this with grep, somehow?
%aonx = %{$::rules->{event}};
foreach $chan ( @{$event->{to}} ) {
+ # don't do anything for channels we haven't synced yet
+ # because we can't yet respect stuff like notrigger for these
+ next unless $::synced{$chan};
next unless $chan =~ /^#/;
next if ((defined($::channels->{channel}->{$chan}->{monitor})) and ($::channels->{channel}->{$chan}->{monitor} eq "no"));
foreach $id (keys %aonx) {