24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-24 22:25:47 +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; end;
max_users -> max_users ->
fun(I) when is_integer(I), I > 0 -> I end; 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", ?ERROR_MSG("unknown option ~p with value ~p",
[Opt, Val]), [Opt, Val]),