diff options
| author | 2015-05-04 04:08:27 +0400 | |
|---|---|---|
| committer | 2015-05-04 04:08:27 +0400 | |
| commit | 8c328b3101f30b07134a2f1648c796d918a017bc (patch) | |
| tree | 79ef0e4d49d843838c808a8d6da6d04cf180c431 | |
| parent | 442ab449716754a6432125c4d49073a05ad8b9a7 (diff) | |
checkRegged: respect monitor flag
| -rw-r--r-- | modules/event.pl | 4 |
1 files changed, 3 insertions, 1 deletions
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')); |
