diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-07-08 20:28:11 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-07-08 20:28:11 +0300 |
commit | 68d12017cc514248b7ce377c0b2f54a60a479bfe (patch) | |
tree | af101f0c736767a298916ee6addda42a46308396 /src/mod_vcard.erl | |
parent | Reload internal room's configuration when mod_muc is reloaded (diff) |
Better detection of duplicated routes/hosts
Diffstat (limited to '')
-rw-r--r-- | src/mod_vcard.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mod_vcard.erl b/src/mod_vcard.erl index fe8af76f4..39da3472e 100644 --- a/src/mod_vcard.erl +++ b/src/mod_vcard.erl @@ -531,9 +531,8 @@ mod_opt_type(allow_return_all) -> fun (B) when is_boolean(B) -> B end; mod_opt_type(db_type) -> fun(T) -> ejabberd_config:v_db(?MODULE, T) end; mod_opt_type(name) -> fun iolist_to_binary/1; -mod_opt_type(host) -> fun iolist_to_binary/1; -mod_opt_type(hosts) -> - fun (L) -> lists:map(fun iolist_to_binary/1, L) end; +mod_opt_type(host) -> fun ejabberd_config:v_host/1; +mod_opt_type(hosts) -> fun ejabberd_config:v_hosts/1; mod_opt_type(matches) -> fun (infinity) -> infinity; (I) when is_integer(I), I > 0 -> I |