Skip to content
Snippets Groups Projects
Commit 73325767 authored by deuce's avatar deuce
Browse files

Prettify the forecast output.

parent 5a27988c
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment