mirror of
https://github.com/reality/dbot.git
synced 2025-03-31 12:57:15 +02:00

The OpenWeatherMap API may return weather for areas unlinked to a city, on which body.name will be undefined. This would previously show up as (for example) "[ , United Kingdom]". This simple ternary will only return a comma if it is also returning a city name.