mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
* src/muc/mod_muc_room.erl: API improvement. It is now possible
to read and write a room config from a developer module (Thanks to Massimiliano Mirra) (EJAB-157) SVN Revision: 682
This commit is contained in:
parent
c82cfe47c2
commit
3512c595db
@ -2,6 +2,10 @@
|
||||
|
||||
* doc/guide.tex: Fixed regexp ACL configuration examples
|
||||
(Thanks to Massimiliano Mirra).
|
||||
|
||||
* src/muc/mod_muc_room.erl: API improvement. It is now possible
|
||||
to read and write a room config from a developer module (Thanks
|
||||
to Massimiliano Mirra).
|
||||
|
||||
2006-11-23 Alexey Shchepin <alexey@sevcom.net>
|
||||
|
||||
|
@ -652,6 +652,9 @@ handle_sync_event(get_config, _From, StateName, StateData) ->
|
||||
{reply, StateData#state.config, StateName, StateData};
|
||||
handle_sync_event(get_state, _From, StateName, StateData) ->
|
||||
{reply, StateData, StateName, StateData};
|
||||
handle_sync_event({change_config, Config}, _From, StateName, StateData) ->
|
||||
{result, [], NSD} = change_config(Config, StateData),
|
||||
{reply, NSD#state.config, StateName, NSD};
|
||||
handle_sync_event(_Event, _From, StateName, StateData) ->
|
||||
Reply = ok,
|
||||
{reply, Reply, StateName, StateData}.
|
||||
|
Loading…
Reference in New Issue
Block a user