mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-10 16:58:46 +01:00
temporary roster_groups_allowed fix (EJAB-655)
SVN Revision: 1360
This commit is contained in:
parent
ab310255d7
commit
a7cd412a76
@ -2535,14 +2535,14 @@ add_opt(Key, Value, Opts) ->
|
|||||||
end).
|
end).
|
||||||
|
|
||||||
-define(SET_LIST_XOPT(Opt, Val),
|
-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) ->
|
set_xoption([], NewOpts) ->
|
||||||
NewOpts;
|
NewOpts;
|
||||||
set_xoption([{"FORM_TYPE", _} | Opts], NewOpts) ->
|
set_xoption([{"FORM_TYPE", _} | Opts], NewOpts) ->
|
||||||
set_xoption(Opts, NewOpts);
|
set_xoption(Opts, NewOpts);
|
||||||
set_xoption([{"pubsub#roster_groups_allowed", Value} | 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_xoption([{"pubsub#deliver_payloads", [Val]} | Opts], NewOpts) ->
|
||||||
?SET_BOOL_XOPT(deliver_payloads, Val);
|
?SET_BOOL_XOPT(deliver_payloads, Val);
|
||||||
set_xoption([{"pubsub#deliver_notifications", [Val]} | Opts], NewOpts) ->
|
set_xoption([{"pubsub#deliver_notifications", [Val]} | Opts], NewOpts) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user