2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

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@13165 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2017-01-21 10:06:52 +00:00
parent e9efe82de9
commit 9c5b216950

View File

@ -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)";
}