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

Temporary workaround for starting stored rooms

This commit is contained in:
Badlop 2010-11-16 02:13:58 +01:00
parent 3e9de2ec79
commit da7e53fe3c
2 changed files with 6 additions and 0 deletions

View File

@ -3286,6 +3286,9 @@ remove_nonmembers(StateData) ->
set_opts([], StateData) -> set_opts([], StateData) ->
StateData; StateData;
%% TODO: fix the calls to this function, so this clause isn't needed
set_opts([#muc_room_opt{opt = Opt, val = Val} | Opts], StateData) ->
set_opts([{Opt, Val} | Opts], StateData);
set_opts([{Opt, Val} | Opts], StateData) -> set_opts([{Opt, Val} | Opts], StateData) ->
NSD = case Opt of NSD = case Opt of
title -> StateData#state{config = (StateData#state.config)#config{title = Val}}; title -> StateData#state{config = (StateData#state.config)#config{title = Val}};

View File

@ -80,3 +80,6 @@
-record(muc_online_users, {us, -record(muc_online_users, {us,
room, room,
host}). host}).
%% Copied from mod_muc.erl
-record(muc_room_opt, {name_host, opt, val}).