Issue 777

Fixes #777 by looking at the URL we came from and deciding whether to display the MOTD or not.