From d7469b0458e40d5b227e8987d91ca9ff60c4952a Mon Sep 17 00:00:00 2001 From: singhharsh1708 Date: Mon, 16 Nov 2026 02:47:40 +0530 Subject: [PATCH] fix: zmtrigger warns when triggering a monitor that does not record --- scripts/zmtrigger.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/zmtrigger.pl.in b/scripts/zmtrigger.pl.in index 0159b7cb4c..043f09a9d0 100644 --- a/scripts/zmtrigger.pl.in +++ b/scripts/zmtrigger.pl.in @@ -358,11 +358,11 @@ sub handleMessage { handleDelay($delay, $connection, $action_text); } } elsif ( $action =~ /^(on|off)(?:[ \+](\d+))?$/ ) { - if ( !$monitor->{Capturing} eq 'None' ) { + if ( $monitor->{Capturing} eq 'None' ) { Warning('Capturing not enabled on monitor '.$id); return; } - if ( !$monitor->{Recording} eq 'None' ) { + if ( $monitor->{Recording} eq 'None' ) { Warning('Recording not enabled on monitor '.$id); }