[SimBot-commits] CVS: simbot/plugins weather.pl,1.95,1.96
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-07-19 17:49:55
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32372/plugins Modified Files: weather.pl Log Message: Stop crashing simbot if there is no precip/obscuration/whatever Index: weather.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/weather.pl,v retrieving revision 1.95 retrieving revision 1.96 diff -u -d -p -r1.95 -r1.96 --- weather.pl 19 Jul 2005 02:50:00 -0000 1.95 +++ weather.pl 19 Jul 2005 17:49:42 -0000 1.96 @@ -465,7 +465,9 @@ sub got_metar { push(@reply_with, $tmp); } - push(@reply_with, @{$wxhash->{'sky_conditions'}}); + if(defined $wxhash->{'sky_conditions'}) { + push(@reply_with, @{$wxhash->{'sky_conditions'}}); + } foreach my $cur_cloud (@{$wxhash->{'cloud_conditions'}}) { push(@reply_with, $cur_cloud->{'cover'} . ' clouds at ' |