24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-10 21:47:01 +02:00

temporary roster_groups_allowed fix (EJAB-655)

SVN Revision: 1360
This commit is contained in:
Christophe Romain 2008-06-18 16:35:17 +00:00
parent ab310255d7
commit a7cd412a76

View File

@ -2535,14 +2535,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) ->