From 73325767670e815b6707261d2adb1441e45c21b5 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 27 Apr 2013 02:21:49 +0000
Subject: [PATCH] Prettify the forecast output.

---
 exec/ircbots/weather/weather_commands.js | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/exec/ircbots/weather/weather_commands.js b/exec/ircbots/weather/weather_commands.js
index 2e7119cb67..0f44aa9f09 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
+}
-- 
GitLab