[SimBot-commits] CVS: simbot/plugins weather.pl,1.98,1.99
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-07-19 20:34:33
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12453/plugins Modified Files: weather.pl Log Message: time zone and a debug statement Index: weather.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/weather.pl,v retrieving revision 1.98 retrieving revision 1.99 diff -u -d -p -r1.98 -r1.99 --- weather.pl 19 Jul 2005 20:30:13 -0000 1.98 +++ weather.pl 19 Jul 2005 20:34:12 -0000 1.99 @@ -343,7 +343,7 @@ sub got_metar { } $raw_metar =~ s/\s+/ /ig; - &SimBot::debug(3, "weather: METAR is " . $raw_metar . "\n"); + &SimBot::debug(4, "weather: METAR is " . $raw_metar . "\n"); my $station_name_query = $dbh->prepare_cached( 'SELECT name, state, country FROM stations' @@ -395,7 +395,8 @@ sub got_metar { } else { $reply .= sprintf('at %d:%02d', $wxhash->{'report_time'}->{'hour'}, - $wxhash->{'report_time'}->{'minute'}); + $wxhash->{'report_time'}->{'minute'}) + . ' ' . $wxhash->{'report_time'}->{'timezone'}; } $reply .= " at $station_name"; my @reply_with; |