[SimBot-commits] CVS: simbot/plugins weather.pl,1.94,1.95
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-07-19 02:50:09
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17924/plugins Modified Files: weather.pl Log Message: * I am insufficiently caffinated. Fixed a logic error in a warning. * timeago can now hide seconds * weather will not show you the seconds in how old the weather report is Index: weather.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/weather.pl,v retrieving revision 1.94 retrieving revision 1.95 diff -u -d -p -r1.94 -r1.95 --- weather.pl 19 Jul 2005 02:33:28 -0000 1.94 +++ weather.pl 19 Jul 2005 02:50:00 -0000 1.95 @@ -368,7 +368,7 @@ sub got_metar { my $reply = 'As reported '; if(defined $wxhash->{'report_time'}->{'unixtime'}) { - $reply .= &SimBot::timeago($wxhash->{'report_time'}->{'unixtime'}); + $reply .= &SimBot::timeago($wxhash->{'report_time'}->{'unixtime'}, 1); } else { $reply .= sprintf('at %d:%02d', $wxhash->{'report_time'}->{'hour'}, |