25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Fix default value of default_room_options (thanks to Aleksey Shchepin)

SVN Revision: 1702
This commit is contained in:
Badlop 2008-12-03 15:06:21 +00:00
parent 9e679aa621
commit 8e32cc11cb

View File

@ -2655,7 +2655,7 @@ check_allowed_persistent_change(XEl, StateData, From) ->
?XFIELD("text-private", Label, Var, Val)).
get_default_room_maxusers(RoomState) ->
DefRoomOpts = gen_mod:get_module_opt(RoomState#state.server_host, mod_muc, default_room_options, ?MAX_USERS_DEFAULT),
DefRoomOpts = gen_mod:get_module_opt(RoomState#state.server_host, mod_muc, default_room_options, []),
RoomState2 = set_opts(DefRoomOpts, RoomState),
(RoomState2#state.config)#config.max_users.