From da1a5036febd4200c39dca33f5673097a7d90172 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Sat, 3 Mar 2018 21:08:05 +0300 Subject: [PATCH] Revert "Support for default values in default_room_opts" This reverts commit 5054a9933f29d6cc8a88486c624987b1b9f05b17. The commit is plain wrong: similar options are not required to be in pair. --- src/mod_muc_room.erl | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 35ea746fd..87ae28797 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -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 ->