mod_chat_history
Keep and replay main-chat history. Part of the bundled plug-ins.
mod_chat_history keeps a rolling log of main-chat messages in memory, replays the
most recent lines to each user on login, and lets users pull up history with a command. The
log is not persisted — it is lost when the hub restarts. For a persistent log, use
mod_chat_history_sqlite.
Loading
plugin /var/lib/uhub/mod_chat_history.so "history_max=200 history_default=25 history_connect=5"
Configuration
| Option | Default | Description |
|---|---|---|
history_max | 200 | Maximum number of messages kept in the log. |
history_default | 25 | Number of lines !history shows when called without an argument. |
history_connect | 5 | Number of recent lines sent automatically when a user logs in (0 disables). |
Commands
| Command | Access | Description |
|---|---|---|
!history [N] | guest | Show the last N messages (or history_default if omitted). |