aboutsummaryrefslogtreecommitdiff
path: root/src/ext_mod.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext_mod.erl')
-rw-r--r--src/ext_mod.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ext_mod.erl b/src/ext_mod.erl
index 6ca218c2a..15fe8e17f 100644
--- a/src/ext_mod.erl
+++ b/src/ext_mod.erl
@@ -439,11 +439,7 @@ short_spec({Module, Attrs}) when is_atom(Module), is_list(Attrs) ->
{Module, proplists:get_value(summary, Attrs, "")}.
is_contrib_allowed() ->
- ejabberd_config:get_option(allow_contrib_modules,
- fun(false) -> false;
- (no) -> false;
- (_) -> true
- end, true).
+ ejabberd_config:get_option(allow_contrib_modules, true).
%% -- build functions