25
1
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:
Mickaël Rémond 2006-11-24 13:24:08 +00:00
parent c82cfe47c2
commit 3512c595db
2 changed files with 7 additions and 0 deletions

View File

@ -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>

View File

@ -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}.