mod_chat_history_sqlite

Persistent main-chat history in SQLite. Part of the bundled plug-ins.

mod_chat_history_sqlite works like mod_chat_history, but stores the log in a SQLite database so it survives hub restarts.

Loading

plugin /var/lib/uhub/mod_chat_history_sqlite.so "file=/etc/uhub/history.db history_connect=5 history_max=200"

Configuration

OptionDefaultDescription
filePath to the SQLite database (required).
history_max200Maximum number of messages returned / retained.
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).