From a0a9aaa1e09a82d35d5587c2a78869dc47bdd281 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 24 Apr 2019 19:45:38 +0200 Subject: [PATCH] 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. --- mod_default_rooms/README.txt | 5 +++-- mod_default_rooms/src/mod_default_rooms.erl | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mod_default_rooms/README.txt b/mod_default_rooms/README.txt index f73f030..2237353 100644 --- a/mod_default_rooms/README.txt +++ b/mod_default_rooms/README.txt @@ -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 diff --git a/mod_default_rooms/src/mod_default_rooms.erl b/mod_default_rooms/src/mod_default_rooms.erl index 5753309..549face 100644 --- a/mod_default_rooms/src/mod_default_rooms.erl +++ b/mod_default_rooms/src/mod_default_rooms.erl @@ -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.