Add client state indication to prosody

This commit is contained in:
Bob Mottram 2016-06-03 20:56:05 +01:00
parent d51af9b3c4
commit 5ec55c0467
1 changed files with 7 additions and 1 deletions

View File

@ -6953,9 +6953,14 @@ function update_prosody_modules {
# message archive management
# https://modules.prosody.im/mod_mam.html
if [ -d cp $INSTALL_DIR/prosody-modules/mod_mam ]; then
if [ -d $INSTALL_DIR/prosody-modules/mod_mam ]; then
cp $INSTALL_DIR/prosody-modules/mod_mam/*.lua /usr/lib/prosody/modules
fi
# Client State Indication
if [ -d $INSTALL_DIR/prosody-modules/mod_csi ]; then
cp $INSTALL_DIR/prosody-modules/mod_csi/*.lua /usr/lib/prosody/modules
fi
}
function install_xmpp {
@ -7029,6 +7034,7 @@ function install_xmpp {
echo ' "saslauth"; -- Enable mod_saslauth' >> /etc/prosody/conf.avail/xmpp.cfg.lua
echo ' "onions"; -- Enable chat via onion service' >> /etc/prosody/conf.avail/xmpp.cfg.lua
echo ' "mam"; -- Message archive management' >> /etc/prosody/conf.avail/xmpp.cfg.lua
echo ' "csi"; -- Client state indication' >> /etc/prosody/conf.avail/xmpp.cfg.lua
echo '}' >> /etc/prosody/conf.avail/xmpp.cfg.lua
echo '' >> /etc/prosody/conf.avail/xmpp.cfg.lua
echo 'c2s_require_encryption = true' >> /etc/prosody/conf.avail/xmpp.cfg.lua