mod_default_rooms: Don't depend on mod_register

The mod_default_rooms module doesn't just work in conjunction with
mod_register, as bookmarks are also auto-added for users registered via,
for example, the "ejabberdctl register" command.  Update the code and
the documentation accordingly.

Thanks to Licaon_Kter for noting this.
This commit is contained in:
Holger Weiss 2019-04-24 19:45:38 +02:00
parent 4e15dcbd7d
commit a0a9aaa1e0
2 changed files with 4 additions and 4 deletions

View File

@ -7,8 +7,9 @@
DESCRIPTION
-----------
This module allows for specifying one or more rooms that should be bookmarked
automatically on successful registration via `mod_register`.
This module allows for specifying one or more rooms that should be
bookmarked automatically on successful user registration (via
"mod_register", or, for example, "ejabberdctl register").
CONFIGURATION

View File

@ -64,8 +64,7 @@ mod_options(_Host) ->
-spec depends(binary(), gen_mod:opts()) -> [{module(), hard | soft}].
depends(_Host, _Opts) ->
[{mod_private, hard},
{mod_register, soft}].
[{mod_private, hard}].
%%--------------------------------------------------------------------
%% ejabberd_hooks callbacks.