2
0
Fork 0
forked from zynk/zynk

CHANGELOG.md date fixes. No code changes. (0.40.9)

This commit is contained in:
Johannes Findeisen 2026-07-24 20:48:50 +02:00
commit a793ee9ad8

View file

@ -1,11 +1,11 @@
24.07.24 - Reduced MAX_HISTORY, moved LOAD_FUNC macro, added irc_reply docs. (0.40.9)
2026.07.24 - Reduced MAX_HISTORY, moved LOAD_FUNC macro, added irc_reply docs. (0.40.9)
- Reduced `MAX_HISTORY` from 100 to 12 to decrease AI context memory usage.
- Moved `LOAD_FUNC` macro from `zynk.h` to `db.h` for better code organization (closer to its usage in sqlite_init_lib).
- Added comprehensive doc comment to `irc_reply()` function describing its nick-prefixing behavior for channel messages.
- Reordered includes in `zynk.c` to alphabetical order.
26.07.24 - Nick-prefixed channel replies for all non-admin commands. (0.40.8)
2026.07.24 - Nick-prefixed channel replies for all non-admin commands. (0.40.8)
- Added `irc_reply()`: a new IRC response helper that automatically prepends the sender's nick to channel messages (e.g. `"nick: pong!"`), while leaving private-message responses unmodified. This makes it clear which user the bot is addressing in busy channels.
- Converted all non-admin command handlers to use `irc_reply()` instead of raw `irc_msg()`: `!ping`, `!zynk`, `!weather`, `!forecast`, `!stock`, `!calc`, `!time`, `!seen`, `!tell`, `!gitlog`, `!changelog`, `!ai`, `!uptime`, `!version`, `!help`, greeting/chat responses, and the `"Not implemented..."` fallback for unknown `!commands`.
@ -15,7 +15,7 @@
- Admin commands (`!quit`, `!reload`, `!restart`, `!rebuild`, `!code`) are intentionally excluded — these are privileged operations where the nick prefix adds no value.
- The `tell_deliver()` function retains its own existing format and was not modified.
26.07.24 - Secure file ops, TLS hardening, input validation, security docs. (0.40.7)
2026.07.24 - Secure file ops, TLS hardening, input validation, security docs. (0.40.7)
- Added `secure_state_open()`: hardened file open with O_CLOEXEC, O_NOFOLLOW, mode 0600, regular-file and ownership checks. Prevents symlink attacks, TOCTOU races, and world-writable temp files.
- Replaced all `fopen()` calls for temp state files (`/tmp/zynk_reload`, `/tmp/zynk_code_restart`, `/tmp/zynk_make_err`, `/tmp/zynk_rebuild_err`) with `secure_state_open()` + `fdopen()` across hot reload, compile-restart, and rebuild paths.