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

* src/mod_muc/mod_muc_room.erl: Added an option set affiliations.

SVN Revision: 734
This commit is contained in:
Mickaël Rémond 2007-02-19 16:56:06 +00:00
parent 6a54d828c4
commit aa68cff85e
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,7 @@
2007-02-19 Mickael Remond <mickael.remond@process-one.net> 2007-02-19 Mickael Remond <mickael.remond@process-one.net>
* src/mod_muc/mod_muc_room.erl: Added an option set affiliations.
* doc/api/*: Added Erlang documentation generation script (EJAB-188). * doc/api/*: Added Erlang documentation generation script (EJAB-188).
* doc/version.tex: Updated. * doc/version.tex: Updated.
* src/ejabberd.app: Updated. * src/ejabberd.app: Updated.

View File

@ -621,6 +621,9 @@ handle_event({destroy, Reason}, _StateName, StateData) ->
handle_event(destroy, StateName, StateData) -> handle_event(destroy, StateName, StateData) ->
handle_event({destroy, none}, StateName, StateData); handle_event({destroy, none}, StateName, StateData);
handle_event({set_affiliations, Affiliations}, StateName, StateData) ->
{next_state, StateName, StateData#state{affiliations = Affiliations}};
handle_event(_Event, StateName, StateData) -> handle_event(_Event, StateName, StateData) ->
{next_state, StateName, StateData}. {next_state, StateName, StateData}.
@ -664,12 +667,12 @@ handle_sync_event({get_disco_item, JID, Lang}, _From, StateName, StateData) ->
end, end,
{reply, Reply, StateName, StateData}; {reply, Reply, StateName, StateData};
handle_sync_event(get_config, _From, StateName, StateData) -> handle_sync_event(get_config, _From, StateName, StateData) ->
{reply, StateData#state.config, StateName, StateData}; {reply, {ok, StateData#state.config}, StateName, StateData};
handle_sync_event(get_state, _From, StateName, StateData) -> handle_sync_event(get_state, _From, StateName, StateData) ->
{reply, StateData, StateName, StateData}; {reply, {ok, StateData}, StateName, StateData};
handle_sync_event({change_config, Config}, _From, StateName, StateData) -> handle_sync_event({change_config, Config}, _From, StateName, StateData) ->
{result, [], NSD} = change_config(Config, StateData), {result, [], NSD} = change_config(Config, StateData),
{reply, NSD#state.config, StateName, NSD}; {reply, {ok, NSD#state.config}, StateName, NSD};
handle_sync_event(_Event, _From, StateName, StateData) -> handle_sync_event(_Event, _From, StateName, StateData) ->
Reply = ok, Reply = ok,
{reply, Reply, StateName, StateData}. {reply, Reply, StateName, StateData}.