3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Plugins/Wttr: OCD formatting?

This commit is contained in:
Pragmatic Software 2020-02-18 15:06:26 -08:00
parent b924443f80
commit e0fa65f003

View File

@ -212,16 +212,16 @@ sub get_wttr {
when ('chances') {
$result .= "Chances of: ";
$result .= "Fog: $h->{'chanceoffog'}%, " if $h->{'chanceoffog'};
$result .= "Frost: $h->{'chanceoffrost'}%, " if $h->{'chanceoffrost'};
$result .= "High temp: $h->{'chanceofhightemp'}%, " if $h->{'chanceofhightemp'};
$result .= "Overcast: $h->{'chanceofovercast'}%, " if $h->{'chanceofovercast'};
$result .= "Rain: $h->{'chanceofrain'}%, " if $h->{'chanceofrain'};
$result .= "Remaining dry: $h->{'chanceofremdry'}%, " if $h->{'chanceofremdry'};
$result .= "Snow: $h->{'chanceofsnow'}%, " if $h->{'chanceofsnow'};
$result .= "Sunshine: $h->{'chanceofsunshine'}%, " if $h->{'chanceofsunshine'};
$result .= "Thunder: $h->{'chanceofthunder'}%, " if $h->{'chanceofthunder'};
$result .= "Windy: $h->{'chanceofwindy'}%, " if $h->{'chanceofwindy'};
$result .= "Fog: " . $h->{'chanceoffog'} . "%, " if $h->{'chanceoffog'};
$result .= "Frost: " . $h->{'chanceoffrost'} . "%, " if $h->{'chanceoffrost'};
$result .= "High temp: " . $h->{'chanceofhightemp'} . "%, " if $h->{'chanceofhightemp'};
$result .= "Overcast: " . $h->{'chanceofovercast'} . "%, " if $h->{'chanceofovercast'};
$result .= "Rain: " . $h->{'chanceofrain'} . "%, " if $h->{'chanceofrain'};
$result .= "Remaining dry: " . $h->{'chanceofremdry'} . "%, " if $h->{'chanceofremdry'};
$result .= "Snow: " . $h->{'chanceofsnow'} . "%, " if $h->{'chanceofsnow'};
$result .= "Sunshine: " . $h->{'chanceofsunshine'} . "%, " if $h->{'chanceofsunshine'};
$result .= "Thunder: " . $h->{'chanceofthunder'} . "%, " if $h->{'chanceofthunder'};
$result .= "Windy: " . $h->{'chanceofwindy'} . "%, " if $h->{'chanceofwindy'};
$result =~ s/,\s+$/; /;
}