From 51d3743b188370f6da7c2b97971b52aee30bfd05 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 24 Dec 2010 14:12:06 +1300 Subject: [PATCH] fix ra mod script --- mods/ra/mod.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ra/mod.html b/mods/ra/mod.html index e13132ee0e..b88a41c0ac 100644 --- a/mods/ra/mod.html +++ b/mods/ra/mod.html @@ -129,7 +129,8 @@ var version = window.external.metadata("VERSION", "ra"); document.getElementById("installedversion").innerHTML = version; document.getElementById("latestversion").innerHTML = window.external.httpRequest("http://master.open-ra.org/VERSION"); - motd = window.external.httpRequest("http://master.open-ra.org/motd.php?v="+version); + var motd = window.external.httpRequest("http://master.open-ra.org/motd.php?v="+version); + if (motd != undefined) document.getElementById("motd").innerHTML = motd.substring(3); }