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
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
This module allows for specifying one or more rooms that should be bookmarked
|
This module allows for specifying one or more rooms that should be
|
||||||
automatically on successful registration via `mod_register`.
|
bookmarked automatically on successful user registration (via
|
||||||
|
"mod_register", or, for example, "ejabberdctl register").
|
||||||
|
|
||||||
|
|
||||||
CONFIGURATION
|
CONFIGURATION
|
||||||
|
|
|
@ -64,8 +64,7 @@ mod_options(_Host) ->
|
||||||
|
|
||||||
-spec depends(binary(), gen_mod:opts()) -> [{module(), hard | soft}].
|
-spec depends(binary(), gen_mod:opts()) -> [{module(), hard | soft}].
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
[{mod_private, hard},
|
[{mod_private, hard}].
|
||||||
{mod_register, soft}].
|
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% ejabberd_hooks callbacks.
|
%% ejabberd_hooks callbacks.
|
||||||
|
|
Loading…
Reference in New Issue