diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-01-23 10:54:52 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-01-23 10:54:52 +0300 |
commit | ba2b650464bd3aae2b6b0f3a3177476360cb6d08 (patch) | |
tree | 5d55501f76edcdcfe145ba0c3367a54ea0314e5c /src/mod_legacy_auth.erl | |
parent | Do not try to start ezlib application too frequently (diff) |
Introduce new gen_mod callback: mod_options/1
The callback is supposed to provide known options and their default
values, as long as the documentation. Passing default values into
get_mod functions is now deprecated: all defaults should be provided
by the Mod:mod_options/1 callback.
Diffstat (limited to 'src/mod_legacy_auth.erl')
-rw-r--r-- | src/mod_legacy_auth.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_legacy_auth.erl b/src/mod_legacy_auth.erl index 8d163818c..19b905ad8 100644 --- a/src/mod_legacy_auth.erl +++ b/src/mod_legacy_auth.erl @@ -25,7 +25,7 @@ -protocol({xep, 78, '2.5'}). %% gen_mod API --export([start/2, stop/1, reload/3, depends/2, mod_opt_type/1]). +-export([start/2, stop/1, reload/3, depends/2, mod_options/1]). %% hooks -export([c2s_unauthenticated_packet/2, c2s_stream_features/2]). @@ -54,7 +54,7 @@ reload(_Host, _NewOpts, _OldOpts) -> depends(_Host, _Opts) -> []. -mod_opt_type(_) -> +mod_options(_) -> []. -spec c2s_unauthenticated_packet(c2s_state(), iq()) -> |