From 8c328b3101f30b07134a2f1648c796d918a017bc Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Mon, 4 May 2015 04:08:27 +0400 Subject: checkRegged: respect monitor flag --- modules/event.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/event.pl b/modules/event.pl index 65c8674..71fa315 100644 --- a/modules/event.pl +++ b/modules/event.pl @@ -720,7 +720,9 @@ sub on_mode sub checkRegged { my ($conn, $chan) = @_; - if (grep {/^r/} @{$::sc{$chan}{modes}}) { + if (grep {/^r/} @{$::sc{$chan}{modes}} + and not ((defined($::channels->{channel}{$chan}{monitor})) and ($::channels->{channel}{$chan}{monitor} eq "no")) ) + { my $tgt = $chan; my $risk = "debug"; my $hilite=ASM::Util->commaAndify(ASM::Util->getAlert($tgt, $risk, 'hilights')); -- cgit v1.2.3