My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
HowTo  
HowTo setting mod_disclaimer in ejabberd.
Featured
Updated Sep 26, 2007 by jorgeeca...@gmail.com

Introduction

In this page you will find howto to set correctly your ejabberd to use mod_disclaimer.

Details

First you need to download the patched version of the ejabberd debian package (Download section)

The only thing you need to change is in /etc/ejabberd/ejabberd.cfg:

  • Disclaimer in normal chat:
  • Add this line to the modules section:
        {mod_disclaimer,[{disclaimer_message,"Message that you want to show"},{disclaimer_time,60}]}
Disclaimer_time is a integer variable that assure that the disclaimer message is being sent every certain time (the disclaimer message is sent only if a user sent a message).
  • Disclaimer in chat rooms:
  • Add this options to mod_muc module:
          {disclaimer_message,"Message that you want to show (Room Version)"},
          {disclaimer_time, 60}]},
  • In both cases:
    • disclaimer_time is optional, and has a default value of 60.
    • if you don't want to used the disclaimer message, leave the configuration file without these settings and ejabberd it will work like always do.


Sign in to add a comment
Powered by Google Project Hosting