24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

Support presence_broadcast in default_room_options mod_muc option

This commit is contained in:
Alexey Shchepin 2015-12-21 02:23:50 +03:00
parent 2d22507636
commit d88d5d6807

View File

@ -364,6 +364,14 @@ init([Host, Opts]) ->
end;
max_users ->
fun(I) when is_integer(I), I > 0 -> I end;
presence_broadcast ->
fun(L) ->
lists:map(
fun(moderator) -> moderator;
(participant) -> participant;
(visitor) -> visitor
end, L)
end;
_ ->
?ERROR_MSG("unknown option ~p with value ~p",
[Opt, Val]),