24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-18 22:15:20 +02:00

temporary roster_groups_allowed (EJAB-655)

SVN Revision: 1359
This commit is contained in:
Christophe Romain 2008-06-18 16:35:03 +00:00
parent 638d789ae6
commit fe82bf3e81

View File

@ -2545,14 +2545,14 @@ add_opt(Key, Value, Opts) ->
end).
-define(SET_LIST_XOPT(Opt, Val),
set_xoption(Opts, add_opt(Opt, list_to_atom(Val), NewOpts))).
set_xoption(Opts, add_opt(Opt, Val, NewOpts))).
set_xoption([], NewOpts) ->
NewOpts;
set_xoption([{"FORM_TYPE", _} | Opts], NewOpts) ->
set_xoption(Opts, NewOpts);
set_xoption([{"pubsub#roster_groups_allowed", Value} | Opts], NewOpts) ->
?SET_LIST_XOPT(roster_groups_allowed, Value);
?SET_LIST_XOPT(roster_groups_allowed, []); % XXX: waiting for EJAB-659 to be solved
set_xoption([{"pubsub#deliver_payloads", [Val]} | Opts], NewOpts) ->
?SET_BOOL_XOPT(deliver_payloads, Val);
set_xoption([{"pubsub#deliver_notifications", [Val]} | Opts], NewOpts) ->