]> granicus.if.org Git - ejabberd/commitdiff
Support for default values in default_room_opts
authorBadlop <badlop@process-one.net>
Mon, 26 Feb 2018 16:22:04 +0000 (17:22 +0100)
committerBadlop <badlop@process-one.net>
Mon, 26 Feb 2018 16:22:37 +0000 (17:22 +0100)
src/mod_muc_room.erl

index 87ae28797eb2d919aabd586fa708f39653478fcd..35ea746fd423d6f04af234c703656367252fddad 100644 (file)
@@ -3378,6 +3378,8 @@ 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 ->