From 24beb8e45f993b8313fbc5b0f6ca48c33c83ec77 Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Sat, 21 Jan 2017 10:06:52 +0000 Subject: [PATCH] 75_MSG: do not add catchall text additions for message types other than text/push/mail git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13165 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/75_MSG.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FHEM/75_MSG.pm b/FHEM/75_MSG.pm index ac85c8a72..ca2fa8d25 100755 --- a/FHEM/75_MSG.pm +++ b/FHEM/75_MSG.pm @@ -1789,14 +1789,16 @@ m/^(absent|disappeared|unauthorized|disconnected|unreachable)$/i my $loopMsg = $msg; if ( $catchall == 1 ) { - $loopTitle = "Fw: $loopTitle" if ($loopTitle); + $loopTitle = "Fw: $loopTitle" + if ( $loopTitle + && $type[$i] !~ /^(audio|screen)$/ ); $loopMsg = "Forwarded Message: $loopMsg" if ( !$loopTitle ); if ( $type[$i] eq "mail" ) { $loopMsg .= "\n\n-- \nMail catched from device $device"; } - else { + elsif ( $type[$i] !~ /^(audio|screen)$/ ) { $loopMsg .= " ### (Catched from device $device)"; }