Support multiple commands after channel autojoin
This commit is contained in:
parent
172157825b
commit
a95f4f42b3
3 changed files with 106 additions and 24 deletions
14
README.md
14
README.md
|
|
@ -68,8 +68,9 @@ name Libera Chat
|
|||
# autocommand /msg NickServ IDENTIFY irc9user $PASSWORD
|
||||
# Build with make -B AUTOJOIN=1 and uncomment channel lines to join at startup.
|
||||
# Each channel line applies to the server above it.
|
||||
# An optional slash command runs after the channel join succeeds.
|
||||
# channel #channel /msg ChanServ OP #channel nickname
|
||||
# Optional comma-separated slash commands run after the channel join succeeds.
|
||||
# irc9 waits two seconds between commands on the same line.
|
||||
# channel #channel /msg ChanServ OP #channel nickname,/mode #channel
|
||||
channel #irc9
|
||||
# channel #murx
|
||||
# channel #zynk
|
||||
|
|
@ -110,9 +111,12 @@ negotiation when configured and before startup channel joins.
|
|||
To enable startup channel joins, build with `make -B AUTOJOIN=1`. Add one
|
||||
`channel #name` line per channel below the corresponding `server` line.
|
||||
After registration, irc9 sends one startup JOIN every two seconds per server.
|
||||
To run a slash command once the server confirms the channel join, add it after the
|
||||
channel name. For example, `channel #channel /msg ChanServ OP #channel nickname`.
|
||||
Commands run in the joined channel's context. Default builds ignore `channel` lines. Use `make -B` to rebuild with autojoin disabled.
|
||||
Add comma-separated slash commands after the channel name, for example
|
||||
`channel #channel /msg ChanServ OP #channel nickname,/mode #channel`.
|
||||
The first command runs when the server confirms the join. irc9 waits two seconds
|
||||
between commands on the same line and runs them in the joined channel's context.
|
||||
A comma followed by a slash, with optional spaces or tabs between them, starts the next command.
|
||||
Default builds ignore `channel` lines. Use `make -B` to rebuild with autojoin disabled.
|
||||
Blank lines and whole-line comments starting with `#` are ignored.
|
||||
|
||||
TLS certificates are verified against a system CA bundle when one is found.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue