mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
Plugins/Wttr: OCD formatting?
This commit is contained in:
parent
b924443f80
commit
e0fa65f003
@ -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+$/; /;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user