From c3c1f0754def9c52bd3b02d223323ea358548dd4 Mon Sep 17 00:00:00 2001 From: timriker Date: Fri, 22 Aug 2003 20:54:25 +0000 Subject: [PATCH] allow optional for git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@820 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Modules/Weather.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Modules/Weather.pl b/src/Modules/Weather.pl index d43614a..1b3bade 100644 --- a/src/Modules/Weather.pl +++ b/src/Modules/Weather.pl @@ -27,9 +27,11 @@ sub Weather { sub queryText { my ($station) = shift; - $station = uc($station); my $result; + $station = uc($station); + $station =~ s/for //i; + if ($no_weather) { return 0; } else { -- 2.39.2