From: timriker Date: Fri, 22 Aug 2003 20:54:25 +0000 (+0000) Subject: allow optional for X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c3c1f0754def9c52bd3b02d223323ea358548dd4;p=infobot.git allow optional for git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@820 c11ca15a-4712-0410-83d8-924469b57eb5 --- 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 {