- Added `!gitlog [count]` command: displays recent git commits of the zynk project using `git log --oneline`. Defaults to 5 commits (`GITLOG_COUNT`), accepts 1–20 as count. Each commit is sent as a separate IRC message.
- Updated `!help` to list `!gitlog`.
- Updated README.md with `!gitlog` documentation and `git` as a requirement.
2026.07.20 – Remove timezone abbreviation from !time response.
-`!time` now outputs date and time only (`YYYY-MM-DD HH:MM:SS`) without the timezone abbreviation, keeping IRC responses shorter and cleaner.
- Removed 60 lines of dead timezone abbreviation-matching code from `tz_format()` (previously mapped 45 IANA timezone names to abbreviations like CEST, EDT, JST, etc.).
- Updated README.md output format to reflect the change.
- Added `tzdata` to README.md requirements as optional (without it, `!time` falls back to 45 built-in timezones).
- Rewrote `!time` to try the system `localtime_r()` first, then fall back to a built-in timezone table with 45 IANA zones and simplified DST rules when the system can't resolve timezones (e.g. no `tzdata` installed). This means `!time Australia/Sydney` now shows correct AEST/AEDT even on minimal systems.
- Added `pi()` function support to `!calc`: bc -l does not define `pi()` on all systems, so `cmd_calc` now prepends a `pi()` definition before evaluating expressions. `!calc pi()`, `!calc pi()*2`, `!calc pi()^2` etc. all work.
- Fixed `!time` command: `setenv("TZ",...) + localtime()` was not reliably converting to the requested timezone. Replaced with `TZ=... date` via `popen()`, which handles all IANA timezone names correctly (e.g. `!time Australia/Sydney` now shows 11:15 AEST instead of UTC).
2026.07.20 – Fix !calc not working (bc stdin not connected).
- Fixed `!calc` command: the expression was never piped to `bc`'s stdin, causing empty output and a "no result" error for every expression. Added a second pipe to feed the expression into `bc` before reading the result.
- 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`.
- Fixed `!forecast` showing all days as Sunday on musl libc (Alpine Linux): `strptime` on musl does not compute `tm_wday`, so added `mktime()` to normalize the struct before formatting.
- Fixed hot reload: after TLS session restore, the bot now re-sends PASS/NICK/USER to re-register with the IRC server, fixing the issue where channels were never re-joined after `!reload` or `!restart`.
2026.07.19 – Hot reload, stock quotes, and auto-recompile.
- Added hot reload: `!reload` and `!restart` commands (ops) save TLS session state, fork a new process with the inherited socket, and resume without dropping from IRC.
- Added `!stock <SYMBOL>[,SYMBOL...]` command to fetch real-time stock quotes from Yahoo Finance (up to 3 symbols).
- Added auto-compile and restart on `!code` changes: when the AI code change response is received, the bot runs `make` and reloads on success.
- Added User-Agent header to curl requests to avoid being blocked by servers that reject the default curl agent.
- Increased curl read buffer from 2 KiB to 32 KiB to handle larger API responses.
- Improved `!forecast` JSON parsing: returns a descriptive error message on parse failure instead of silently returning nothing.
- Increased AI_TIMEOUT from 240s to 600s and AI_REPLY_MAX from 400 to 2048 chars for longer AI interactions.