Skip to content

Commit

Permalink
Merge pull request #291 from squidowl/fix/kebab-in-server-message
Browse files Browse the repository at this point in the history
fix kebab in server messages
  • Loading branch information
casperstorm committed Mar 21, 2024
2 parents 7db75d7 + 96c90ba commit 924195b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions book/src/configuration/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ username_format = "full" | "short"
enabled = true | false
```

| Key | Description | Default |
| -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `enabled` | Contr |
| ol if the server message should appear in buffers or not | `true` |
| Key | Description | Default |
| ----------- | ------------------------------------------------------------------ | ------- |
| `enabled` | Control if the server message should appear in buffers or not | `true` |
| `smart` | Only show server message if the user has sent a message in the given time interval (seconds) prior to the server message. | `not set` |
| `username-format` | Adjust how the username should look. Can be `"full"` (shows the longest username available (nickname, username and hostname) or `"short"` (only shows nickname). | `"full"` |
| `username_format` | Adjust how the username should look. Can be `"full"` (shows the longest username available (nickname, username and hostname) or `"short"` (only shows nickname). | `"full"` |
1 change: 0 additions & 1 deletion data/src/config/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ impl ServerMessages {
}

#[derive(Debug, Copy, Clone, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub struct ServerMessage {
#[serde(default = "default_bool_true")]
pub enabled: bool,
Expand Down

0 comments on commit 924195b

Please sign in to comment.