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

Use store_room where possible

This commit is contained in:
Paweł Chmielowski 2017-10-31 16:12:35 +01:00
parent ce98843dd4
commit ee2b5be7f4

View File

@ -3335,8 +3335,7 @@ change_config(Config, StateData) ->
Config#config.persistent}
of
{_, true} ->
mod_muc:store_room(NSD#state.server_host,
NSD#state.host, NSD#state.room, make_opts(NSD));
store_room(NSD);
{true, false} ->
mod_muc:forget_room(NSD#state.server_host,
NSD#state.host, NSD#state.room);