2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 17:26:34 +00:00

No motd if there is already output

git-svn-id: https://svn.fhem.de/fhem/trunk@1650 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-06-25 07:40:42 +00:00
parent 5d7af06c13
commit 7cb8799426

View File

@ -470,7 +470,7 @@ FW_AnswerCall($)
elsif($FW_detail) { FW_doDetail($FW_detail); }
elsif($FW_room) { FW_showRoom(); }
elsif($cmd =~ /^logwrapper/) { FW_logWrapper($cmd); }
elsif(AttrVal("global", "motd", "none") ne "none") {
elsif(!$FW_cmdret && AttrVal("global", "motd", "none") ne "none") {
my $motd = AttrVal("global","motd",undef);
$motd =~ s/\n/<br>/g;
FW_pO "<div id=\"content\">$motd</div>";