mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Improve validation of configured language options
This commit is contained in:
parent
a8b1a58cc8
commit
5e9945f060
@ -1449,7 +1449,7 @@ opt_type(hosts) ->
|
||||
[iolist_to_binary(H) || H <- L]
|
||||
end;
|
||||
opt_type(language) ->
|
||||
fun iolist_to_binary/1;
|
||||
fun xmpp_lang:check/1;
|
||||
opt_type(max_fsm_queue) ->
|
||||
fun (I) when is_integer(I), I > 0 -> I end;
|
||||
opt_type(default_db) ->
|
||||
|
@ -988,7 +988,7 @@ mod_opt_type({default_room_options, presence_broadcast}) ->
|
||||
end, L)
|
||||
end;
|
||||
mod_opt_type({default_room_options, lang}) ->
|
||||
fun iolist_to_binary/1.
|
||||
fun xmpp_lang:check/1.
|
||||
|
||||
mod_options(Host) ->
|
||||
[{access, all},
|
||||
|
Loading…
Reference in New Issue
Block a user