mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
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
This commit is contained in:
parent
b383b8a83f
commit
1fb4691826
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user