]> git.donarmstrong.com Git - infobot.git/commitdiff
allow optional for
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 22 Aug 2003 20:54:25 +0000 (20:54 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 22 Aug 2003 20:54:25 +0000 (20:54 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@820 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/Weather.pl

index d43614af4d280a3f7b39e4150439c4b647da4e75..1b3badec58f6963f6eee5794b909fbcdd994d6d2 100644 (file)
@@ -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 {