No motd if there is already output

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1650 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-06-25 07:40:42 +00:00
parent aac7de9ea6
commit 3f144b742b

View File

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