From cd6e6251a10d98ed10d8d5acfc78634cd5260b6c Mon Sep 17 00:00:00 2001 From: loredo Date: Thu, 4 Aug 2016 17:13:08 +0000 Subject: [PATCH] 75_MSG.pm: even consider empty recipient list as some modules may have empty readings as well git-svn-id: https://svn.fhem.de/fhem/trunk@11893 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/75_MSG.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/75_MSG.pm b/fhem/FHEM/75_MSG.pm index b3a0e1e7a..4fa6925ee 100755 --- a/fhem/FHEM/75_MSG.pm +++ b/fhem/FHEM/75_MSG.pm @@ -138,11 +138,12 @@ s/^[\s\t]*([a-z,]*!?(screen|light|audio|text|push|mail)[a-z,!|]*)[\s\t]+// # e.g. recipients were given automatically from empty readings if ( $msg =~ s/^[\s\t]*([!]?(([A-Za-z0-9%+._-])*@([,\-:|]+)))[\s\t]+// ) { Log3 $globalDevName, 4, - "msg: recipient '$1' contains special characters like" - . " ',-:|' so message won't be sent. This might be okay, e.g. if you are" - . " using something like a reading from RESIDENTS/ROOMMATE/GUEST to" - . " address present or absent residents and this list is simply empty" - . " at this time. ($msg)"; + "msg: message won't be sent - recipient '$1' contains special" + . " characters like ',-:|' or behind the @ character is simply" + . " emptiness. This might be okay, e.g. if you are using something" + . " like a reading from RESIDENTS/ROOMMATE/GUEST to address present" + . " or absent residents and this list is simply empty at this time." + . " ($msg)"; return; }