25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Revert "Support for default values in default_room_opts"

This reverts commit 5054a9933f.
The commit is plain wrong: similar options are not required to
be in pair.
This commit is contained in:
Evgeniy Khramtsov 2018-03-03 21:08:05 +03:00
parent 0d3637d18f
commit da1a5036fe

View File

@ -3378,8 +3378,6 @@ remove_nonmembers(StateData) ->
-spec set_opts([{atom(), any()}], state()) -> state().
set_opts([], StateData) -> StateData;
set_opts([{Opt, Val}, {Opt, _DefaultVal} | Opts], StateData) ->
set_opts([{Opt, Val} | Opts], StateData);
set_opts([{Opt, Val} | Opts], StateData) ->
NSD = case Opt of
title ->