SQLite chat history plugin

Current version: 1.0

Logs main chat history into sqlite database.

Configuration

Open plugins.conf in your favourite text editor and add this line:

plugin /usr/lib/uhub/mod_chat_history_sqlite.so "file=chat_history.db history_max=200 history_default=10 history_connect=5"

Parameters:

ParameterDescription
filepath/filename for database
history_maxThe maximum number of messages to keep in history.
history_defaultWhen !history is provided without arguments, then this default number of messages are returned.
history_connectThe number of chat history messages to send when users connect (0 = do not send any history).
server_time_diffTime modifier in hours used to store timestamps in hub local time if the server time is different.

Hub commands

CommandDescription
!history [<lines>]Show chat message history.
!historycleanupClean chat message history.