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

OptionDefaultDescription
history_max200Maximum number of messages kept in the log.
history_default25Number of lines !history shows when called without an argument.
history_connect5Number of recent lines sent automatically when a user logs in (0 disables).

Commands

CommandAccessDescription
!history [N]guestShow the last N messages (or history_default if omitted).