Hi,
To prevent a module (such as mod_stats) from being loaded, is it simply enough to remove it from the ejabberd.cfg file and restart ejabberd? How would I know whether there are any dependencies? What would happen if a user requests stats and the module isn't loaded? Would this change influence the stats displayed by the web admin interface?
Is it possible to set up an ACL (access rule) for this module? (As an alternative to removing it from the config file.)
I'm quite new to Erlang and ejabberd, so please bear with me if this is a straight forward matter. If that's the case, please refer me to the appropriate documentation.
Thank you
Pieter Rautenbach
Re: Removing mod_stats from config
I've tried this and I think my answers are correct. Tell me if you find any error.
is it simply enough to remove it from the ejabberd.cfg file and restart ejabberd?
Yes.
How would I know whether there are any dependencies?
You don't know at all. For example, mod_echo requires mod_disco, but there is no error when starting if you disable mod_disco.
What would happen if a user requests stats and the module isn't loaded?
Quite simple: the feature is not available.
Would this change influence the stats displayed by the web admin interface?
No.
Is it possible to set up an ACL (access rule) for this module? (As an alternative to removing it from the config file.)
No, unfortunately.
Re: Removing mod_stats from config
Thanks, I'll give it a try and post any problems that I may encounter here.