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:
parent
2d22507636
commit
d88d5d6807
|
@ -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]),
|
||||
|
|
Loading…
Reference in New Issue
Block a user