Full forecast mode, 24h times, startup version, doc fixes. (0.40.5)
- Added 'full' keyword to !forecast: '!forecast frankfurt full' shows
per-day detail lines with weather description, sunrise/sunset, and
moonrise/moonset in 24-hour format, sent as separate IRC messages.
- Added to_24h() helper to convert wttr.in's 12-hour AM/PM astronomy
times to 24-hour format (e.g. '05:20 AM' -> '05:20').
- Fixed missing first letter of weather descriptions in full mode
('value' offset was 11 instead of 10, skipping the first char).
- Startup message now includes the version: '[zynk 0.40.5] starting up'.
- Added doc comments to to_24h(), find_day_obj(), and other forecast
helper functions with full parameter documentation.
- Fixed 'Not implemented...' fallback to only trigger when ! is
followed by a letter (e.g. !foo), so bare ! or !!! no longer
produce the message.
- Updated README.md to document !forecast [city] [full] syntax.
- Updated CHANGELOG.md with 0.40.5 entry.
This commit is contained in:
parent
1f9f4b60f5
commit
d4c1b7cfcf
6 changed files with 335 additions and 64 deletions
2
zynk.c
2
zynk.c
|
|
@ -766,7 +766,7 @@ int main(int argc, char **argv) {
|
|||
char joinbuf[256] = "#zynk";
|
||||
g_opencode_bin = OPENCODE_BIN;
|
||||
int pos = 0;
|
||||
log_stamp(); fprintf(stderr, CLR_CYAN "[zynk] starting up" CLR_RESET "\n");
|
||||
log_stamp(); fprintf(stderr, CLR_CYAN "[zynk (" VERSION ")] starting up" CLR_RESET "\n");
|
||||
for (int i = 1; i < argc; i++) {
|
||||
if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0) {
|
||||
usage(argv[0]); return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue