mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-30 17:43:57 +01:00
* src/mod_muc/mod_muc_room.erl: Allow change_state of a room
SVN Revision: 1329
This commit is contained in:
parent
5bec1eedc1
commit
c892a60da5
@ -689,6 +689,8 @@ handle_sync_event(get_state, _From, StateName, StateData) ->
|
||||
handle_sync_event({change_config, Config}, _From, StateName, StateData) ->
|
||||
{result, [], NSD} = change_config(Config, StateData),
|
||||
{reply, {ok, NSD#state.config}, StateName, NSD};
|
||||
handle_sync_event({change_state, NewStateData}, _From, StateName, _StateData) ->
|
||||
{reply, {ok, NewStateData}, StateName, NewStateData};
|
||||
handle_sync_event(_Event, _From, StateName, StateData) ->
|
||||
Reply = ok,
|
||||
{reply, Reply, StateName, StateData}.
|
||||
|
Loading…
Reference in New Issue
Block a user