summaryrefslogtreecommitdiff
path: root/src/mod_announce.erl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mod_announce.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_announce.erl b/src/mod_announce.erl
index 9a9e665f..fc57d6bd 100644
--- a/src/mod_announce.erl
+++ b/src/mod_announce.erl
@@ -903,7 +903,7 @@ send_announcement_to_all(Host, SubjectS, BodyS) ->
get_access(Host) ->
gen_mod:get_module_opt(Host, ?MODULE, access,
- fun(A) when is_atom(A) -> A end,
+ fun(A) -> A end,
none).
%%-------------------------------------------------------------------------
@@ -920,6 +920,6 @@ import(LServer, DBType, LA) ->
Mod:import(LServer, LA).
mod_opt_type(access) ->
- fun (A) when is_atom(A) -> A end;
+ fun acl:access_rules_validator/1;
mod_opt_type(db_type) -> fun(T) -> ejabberd_config:v_db(?MODULE, T) end;
mod_opt_type(_) -> [access, db_type].