[formats] section of config.toml.
Format String Syntax
Variables
Use${variable} to insert values:
Conditionals
Use${?variable|text} to only render when the variable is non-empty:
message is empty, the (message) part is omitted entirely.
Message Formats
Available Variables (Messages)
| Variable | Description |
|---|---|
${nick} | Sender’s nickname |
${text} | Message content |
${label} | Label for server messages (whois, error, etc.) |
Event Formats
Available Variables (Events)
| Variable | Description |
|---|---|
${nick} | The user performing the action |
${channel} | Channel name |
${userhost} | user@host (on join) |
${message} | Part/quit message (optional) |
${target} | Target user (kick) or mode target |
${reason} | Kick reason (optional) |
${old_nick} | Previous nickname (nick change) |
${new_nick} | New nickname (nick change) |
${topic} | New topic text |
${modes} | Mode string (e.g., +o user) |