- Moved doc comment block for yt_url_encode() from top of cmd_yt.h
to immediately before the function definition for better readability.
- Added doc comments to volatile sig_atomic_t running variable describing
its purpose as main loop control flag and async-signal-safety.
- Added doc comments to start_time variable explaining its role in
uptime calculation.
- Updated CHANGELOG.md to reflect yt_url_encode() doc comment move.
Fixed !yt displaying raw JSON Unicode escape sequences (e.g. \u0027
instead of ') in video titles and channel names. YouTube's oEmbed API
returns non-ASCII characters as \uXXXX escapes, which were previously
passed through as-is to IRC.
- Added yt_hex_digit(): converts a hex character to its numeric value (0-15)
- Added yt_codepoint_to_utf8(): encodes a Unicode code point as 1-4 UTF-8
bytes, handling the full range from U+0000 through U+10FFFF
- Added yt_decode_unicode_escapes(): scans a string for \uXXXX sequences
and replaces each with the corresponding UTF-8 bytes in-place. Safe for
in-place modification because UTF-8 output is always shorter than the
6-byte escape sequence
- Both title and author fields are now decoded after extraction from the
JSON response
- Added doc comments to all three new helper functions
- Updated CHANGELOG.md with 0.41.1 entry documenting all changes
Added new !yt command (cmd_yt.h) that fetches the title and channel name
of a YouTube video using the YouTube oEmbed API. The video URL is
percent-encoded via a new yt_url_encode() helper before being passed as a
query parameter. The JSON response is parsed for 'title' and 'author_name'
fields using the existing json_find() helper, and the result is formatted
as 'Title - Channel'.
- New file: cmd_yt.h with yt_url_encode() and cmd_yt() command handler
- CMakeLists.txt: added WITH_YT feature toggle (ON by default)
- zynk.c: added conditional #include for cmd_yt.h
- irc.h: added cmd_yt() dispatch in handle_privmsg()
- cmd_help.h: added !yt <url> to the help listing
- zynk.c: added doc comments to json_find() function
- cmd_yt.h: added doc comments to yt_url_encode() and cmd_yt()
- CHANGELOG.md: added 0.41.0 entry documenting all changes
- README.md: updated feature summary, features list, feature toggles
table, minimal build command, and IRC commands utilities table