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:
parent
4e15dcbd7d
commit
a0a9aaa1e0
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue