mirror of
https://github.com/processone/ejabberd.git
synced 2024-07-14 23:44:18 +02:00
![]() Ejabberd can be configured to store recent history of MUCs to DB before shutdown. On restart, those messages are retrieved from storage. To enable it, set {persist_history, true} in mod_muc configuration, ej: {mod_muc, [ %%{host, "conference.@HOST@"}, {access, muc}, {access_create, muc_create}, {access_persistent, muc_create}, {access_admin, muc_admin}, {persist_history, true} ]}, Messages are only stored on server shutdown, not on the fly. $ejabberdctl stop or init:stop() inside a debug console works. Note: Only rooms configured as "persistent" will save messages (as other rooms doesn't survive server restart anyway). Limitations: There is no option to store messages on mnesia, you *must* use a ODBC database. Only tested with mysql. Check odbc/mysql.sql for the definition of the table "room_history", the one needed for this. |
||
---|---|---|
.. | ||
Makefile.in | ||
Makefile.win32 | ||
mod_muc_log.erl | ||
mod_muc_room.erl | ||
mod_muc_room.hrl | ||
mod_muc.erl |