diff --git a/exec/ircbots/weather/weather_commands.js b/exec/ircbots/weather/weather_commands.js index 2e7119cb67a4cc5f139ab548454936b18991040f..0f44aa9f099afeb2c12d584c000c8e7d0313228d 100644 --- a/exec/ircbots/weather/weather_commands.js +++ b/exec/ircbots/weather/weather_commands.js @@ -139,8 +139,14 @@ Bot_Commands["FORECAST"].command = function (target,onick,ouh,srv,lvl,cmd) { str += " " + fcast.title + ": " + fcast.fcttext; } str += ' (Provided by Weather Underground, Inc.)'; - + + var m; + while(m=str.match(/^(.*?\. )[^\.]+:/)) { + srv.o(target, m[1]); + str=str.substr(m[1].length); + } srv.o(target, str); + break; default: srv.o(target, "Multiple matches for "+lstr); @@ -161,4 +167,4 @@ Bot_Commands["FORECAST"].command = function (target,onick,ouh,srv,lvl,cmd) { } return true; -} \ No newline at end of file +}