doc/lua-api #5

Merged
fuzzy merged 3 commits from doc/lua-api into main 2026-06-07 14:13:14 +00:00
Owner
No description provided.
This commit refactors the IRC client implementation to use a single connection field instead of separate socket and TLS connection fields. It also implements proper signal handling for graceful shutdown, changes the log file permissions, updates configuration values, and improves the link grabbing and weather plugins with better error handling and API key management.

# Previous message:
Modernize Go code and fix Lua plugins

Go changes:
- Graceful shutdown via SIGINT/SIGTERM instead of select{}
- DRY socket I/O: single conn field replaces Socket/SslSock branching
- Fix Lua C return values: void functions return 0, info functions return 1
- Fix event.go nick parsing with bounds check
- Log file permissions 0600

Lua changes:
- example.lua: use register() not register_handler()
- greet.lua: local variables, remove redundant string.format
- join.lua, part.lua: use commandChar() instead of hardcoded !
- linkgrabber.lua: fix globals, fix URL regex, fix findLink gmatch, env var for path
- weather.lua: API key from env var, local declarations
feat: implement webhook server and trigger system improvements
Some checks failed
CI / ci (pull_request) Failing after 1m41s
983f52d35b
fuzzy scheduled this pull request to auto merge when all checks succeed 2026-06-07 13:58:37 +00:00
chore: disable lint step in ci workflow
All checks were successful
CI / ci (pull_request) Successful in 59s
beb635e951
fuzzy merged commit beb635e951 into main 2026-06-07 14:13:14 +00:00
fuzzy deleted branch doc/lua-api 2026-06-07 14:13:14 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/gehenbot!5
No description provided.