Collapse double spaces in !forecast and !stock responses
Add collapse_spaces() utility that reduces runs of whitespace to a single space. Applied to fetch_forecast() output and the !stock response buffer before sending to IRC, fixing double spaces that appeared when wttr.in returned an empty weather condition string (e.g. "15°C / Sun 20 Jul" instead of "15°C / Sun 20 Jul"). Bump version to 0.34.2.
This commit is contained in:
parent
3727a5f72b
commit
335d35a7b8
2 changed files with 19 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2026.07.19 – Collapsed double spaces in `!forecast` and `!stock` responses
|
||||
|
||||
- Collapsed double spaces in `!forecast` and `!stock` responses (e.g., when weather condition is empty).
|
||||
- Version bumped to 0.34.2.
|
||||
|
||||
2026.07.19 – Fix !weather returning HTML.
|
||||
|
||||
- Fixed `!weather` command returning `<!DOCTYPE html>` instead of weather data: wttr.in now returns HTML when it detects a browser User-Agent, so replaced the fake Firefox UA string with `zynk/VERSION`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue